on xenial help sign in
Instead of failing the .sh create a fake "fail" .xml
aa5bdbbAlbert Astals Cid
runtests.sh+3−3
@@ -42,7 +42,9 @@ sleep 1
42cd -
42cd -
43
43
44make -k qmltests
44make -k qmltests
45−makeresult=$?
45+if [ $? -ne 0 ]; then
46+ echo '<?xml version="1.0" encoding="UTF-8" ?><testsuite errors="0" failures="1" tests="1" name="makeExitStatusTest"><properties/><testcase result="fail" name="makeExitStatus"><failure message="Make test did not suceed" result="fail"/></testcase><system-err/></testsuite>' > testMakeExitStatus.xml
47+fi
46
48
47cd -
49cd -
48
50
@@ -135,5 +137,3 @@ echo " </classes>" >> $coveragefile
135echo " </package>" >> $coveragefile
137echo " </package>" >> $coveragefile
136echo " </packages>" >> $coveragefile
138echo " </packages>" >> $coveragefile
137echo "</coverage>" >> $coveragefile
139echo "</coverage>" >> $coveragefile
138−
139−exit $makeresult