tests: run schema checks in sorted order

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.
This commit is contained in:
Eric Blake 2011-12-20 17:31:27 -07:00
parent bbae92f8b8
commit 6fdbce1232

View 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"