[libvirt] [PATCH] Remove bash-ism from tests/schematestutils.sh

Chris Dunlop chris at onthe.net.au
Sat May 18 03:03:39 UTC 2013


Remove bash-ism from tests/schematestutils.sh

Fix a bash-ism in an sh script, introduced by commit a3f71eb

Signed-off-by: Chris Dunlop <chris at onthe.net.au>

diff --git a/tests/schematestutils.sh b/tests/schematestutils.sh
index e739b99..c34364f 100644
--- a/tests/schematestutils.sh
+++ b/tests/schematestutils.sh
@@ -20,7 +20,7 @@ do
     result=`$cmd 2>&1`
     ret=$?
 
-    grep -- '-invalid.xml$' <<< "$xml" 2>&1 >/dev/null
+    echo "$xml" | grep -- '-invalid.xml$' 2>&1 >/dev/null
     invalid=$?
 
     # per xmllint man page, the return codes for validation error




More information about the libvir-list mailing list