]> xenbits.xensource.com Git - libvirt.git/commitdiff
tests: run schema checks in sorted order
authorEric Blake <eblake@redhat.com>
Wed, 21 Dec 2011 00:31:27 +0000 (17:31 -0700)
committerEric Blake <eblake@redhat.com>
Wed, 21 Dec 2011 00:34:12 +0000 (17:34 -0700)
Having a test that depends on file system timestamps and/or inode
allocation order gives non-deterministic output.

* tests/schematestutils.sh: Run test in deterministic order.

tests/schematestutils.sh

index f2b3b50778aded80c9f242d34a29bd45269b2c23..ec6452a001ed8022e38cd9faaf1975dec440ca4a 100644 (file)
@@ -13,7 +13,7 @@ for dir in $DIRS
 do
   XML=`find $abs_srcdir/$dir -name '*.xml'` || exit 1
 
-  for xml in $XML
+  for xml in `echo $XML | sort`
   do
     n=`expr $n + 1`
     cmd="xmllint --relaxng $SCHEMA --noout $xml"