system-out and system-err should be there even if no failure

This commit is contained in:
2026-01-18 11:26:00 -05:00
parent 44f865dc4f
commit 67a79e66d2

View File

@@ -106,11 +106,11 @@ 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-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)
echo ' <system-out/>' >> /tmp/$$.junit
echo ' <system-err/>' >> /tmp/$$.junit
echo ' <failure type="'$failtype'" message="'$failmsg'">' >> /tmp/$$.junit echo ' <failure type="'$failtype'" message="'$failmsg'">' >> /tmp/$$.junit
echo ' <![CDATA[' >> /tmp/$$.junit echo ' <![CDATA[' >> /tmp/$$.junit
echo "${cdata}" >> /tmp/$$.junit echo "${cdata}" >> /tmp/$$.junit