system-out and system-err should be there even if no failure
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user