custom_rules.xml: fail with custom error code in case of crashed tests (125) / failed tests (42)

This commit is contained in:
Gautier Pelloux-Prayer 2015-04-23 09:34:27 +02:00
parent 8049d438dc
commit 4f58d19fa3
2 changed files with 4 additions and 4 deletions

View file

@ -55,7 +55,7 @@
<antcall target="check-for-crash"/>
<fail message="Tests failed">
<fail message="Tests failed" status="42">
<condition>
<resourcecontains resource="${output.file}" substring="FAILURES" />
</condition>
@ -73,6 +73,6 @@
<arg value="-c" />
<arg value="cat ${archive.name} |ndk-stack -sym obj/local/`adb shell getprop ro.product.cpu.abi | tr -d '\r'`" />
</exec>
<fail message="Tests crashed"/>
<fail message="Tests crashed" status="125"/>
</target>
</project>

View file

@ -48,7 +48,7 @@
<antcall target="check-for-crash"/>
<fail message="Tests failed">
<fail message="Tests failed" status="42">
<condition>
<resourcecontains resource="${output.file}" substring="FAILURES" />
</condition>
@ -65,6 +65,6 @@
<arg value="-c" />
<arg value="cat ${archive.name} |ndk-stack -sym obj/local/`adb shell getprop ro.product.cpu.abi | tr -d '\r'`" />
</exec>
<fail message="Tests crashed"/>
<fail message="Tests crashed" status="125"/>
</target>
</project>