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:
Pino Toscano
2014-03-14 11:24:22 +01:00
parent 38fbda9d37
commit 56efdb29bf

6
run.in
View File

@@ -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