mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-12 13:17:58 +03:00
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:
parent
bbae92f8b8
commit
6fdbce1232
@ -13,7 +13,7 @@ for dir in $DIRS
|
|||||||
do
|
do
|
||||||
XML=`find $abs_srcdir/$dir -name '*.xml'` || exit 1
|
XML=`find $abs_srcdir/$dir -name '*.xml'` || exit 1
|
||||||
|
|
||||||
for xml in $XML
|
for xml in `echo $XML | sort`
|
||||||
do
|
do
|
||||||
n=`expr $n + 1`
|
n=`expr $n + 1`
|
||||||
cmd="xmllint --relaxng $SCHEMA --noout $xml"
|
cmd="xmllint --relaxng $SCHEMA --noout $xml"
|
||||||
|
Loading…
Reference in New Issue
Block a user