Create system-out and system-err nodes even tho empty

This commit is contained in:
2026-01-18 11:31:48 -05:00
parent 67a79e66d2
commit 73cfb3c00c

View File

@@ -106,8 +106,8 @@ EOF
cdata="$6" cdata="$6"
SHUNIT_TESTS=$(expr $SHUNIT_TESTS + 1) SHUNIT_TESTS=$(expr $SHUNIT_TESTS + 1)
echo ' <testcase classname="'$classname'" time="'$elapsed'" name="'$testname'">' >> /tmp/$$.junit echo ' <testcase classname="'$classname'" time="'$elapsed'" name="'$testname'">' >> /tmp/$$.junit
echo ' <system-out/>' >> /tmp/$$.junit echo ' <system-out></system-out>' >> /tmp/$$.junit
echo ' <system-err/>' >> /tmp/$$.junit echo ' <system-err></system-err>' >> /tmp/$$.junit
if [ "$failtype" != "" ]; then if [ "$failtype" != "" ]; then
SHUNIT_ERRORS=$(expr $SHUNIT_ERRORS + 1) SHUNIT_ERRORS=$(expr $SHUNIT_ERRORS + 1)
SHUNIT_FAILURES=$(expr $SHUNIT_FAILURES + 1) SHUNIT_FAILURES=$(expr $SHUNIT_FAILURES + 1)