From: Eric Blake Date: Wed, 21 Dec 2011 00:31:27 +0000 (-0700) Subject: tests: run schema checks in sorted order X-Git-Tag: v0.9.9-rc1~33 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6fdbce12322f3ae6bcf1ff5c2678c2e9dbc8d2cc;p=thirdparty%2Flibvirt.git 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. --- diff --git a/tests/schematestutils.sh b/tests/schematestutils.sh index f2b3b50778..ec6452a001 100644 --- a/tests/schematestutils.sh +++ b/tests/schematestutils.sh @@ -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"