mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
tests: skip the output of test-virt-rescue.pl from RUN_OUTPUT_FILE
The output of test-virt-rescue.pl contains non-ASCII chars which give troubles when being XSLT-transformed, so just avoid its output to leave the rest of the resulting XML well-formed.
This commit is contained in:
6
run.in
6
run.in
@@ -264,7 +264,11 @@ if [ -n "$RUN_OUTPUT_FILE" ]; then
|
||||
testname=`echo "$1" | sed -e 's,^./,,g'`
|
||||
echo "<test rescode=\"$fail\" name=\"$testname\" time=\"$(($end_t - $start_t))\">" >> $RUN_OUTPUT_FILE
|
||||
echo "<![CDATA[" >> $RUN_OUTPUT_FILE
|
||||
cat $tmpout >> $RUN_OUTPUT_FILE
|
||||
# skip the results of test-virt-rescue.pl, as they contain
|
||||
# non-ASCII chars which give troubles to xsltproc
|
||||
if ! echo "$testname" | grep test-virt-rescue.pl &>/dev/null ; then
|
||||
cat $tmpout >> $RUN_OUTPUT_FILE
|
||||
fi
|
||||
echo "]]>" >> $RUN_OUTPUT_FILE
|
||||
echo "</test>" >> $RUN_OUTPUT_FILE
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user