From 6fdbce12322f3ae6bcf1ff5c2678c2e9dbc8d2cc Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Tue, 20 Dec 2011 17:31:27 -0700 Subject: [PATCH] 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. --- tests/schematestutils.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" -- GitLab