[libvirt] [PATCH] tests: fix schema checks sorting

Eric Blake eblake at redhat.com
Thu Dec 22 20:02:52 UTC 2011

Commit 6fdbce12 attempted to sort the list of tests, but failed
(without quotes, echo merges all the tests into a single line,
so there was nothing to sort).

* tests/schematestutils.sh: Fix thinko in previous patch.

Pushing under the trivial rule.
/me pulls brown paper bag over face - so much for being known as a shell expert :)

 tests/schematestutils.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tests/schematestutils.sh b/tests/schematestutils.sh
index ec6452a..4361221 100644
--- a/tests/schematestutils.sh
+++ b/tests/schematestutils.sh
@@ -13,7 +13,7 @@ for dir in $DIRS
   XML=`find $abs_srcdir/$dir -name '*.xml'` || exit 1

-  for xml in `echo $XML | sort`
+  for xml in `echo "$XML" | sort`
     n=`expr $n + 1`
     cmd="xmllint --relaxng $SCHEMA --noout $xml"

More information about the libvir-list mailing list