custom_rules.xml: fail with custom error code in case of crashed tests (125) / failed tests (42)
This commit is contained in:
parent
8049d438dc
commit
4f58d19fa3
2 changed files with 4 additions and 4 deletions
|
@ -55,7 +55,7 @@
|
||||||
|
|
||||||
<antcall target="check-for-crash"/>
|
<antcall target="check-for-crash"/>
|
||||||
|
|
||||||
<fail message="Tests failed">
|
<fail message="Tests failed" status="42">
|
||||||
<condition>
|
<condition>
|
||||||
<resourcecontains resource="${output.file}" substring="FAILURES" />
|
<resourcecontains resource="${output.file}" substring="FAILURES" />
|
||||||
</condition>
|
</condition>
|
||||||
|
@ -73,6 +73,6 @@
|
||||||
<arg value="-c" />
|
<arg value="-c" />
|
||||||
<arg value="cat ${archive.name} |ndk-stack -sym obj/local/`adb shell getprop ro.product.cpu.abi | tr -d '\r'`" />
|
<arg value="cat ${archive.name} |ndk-stack -sym obj/local/`adb shell getprop ro.product.cpu.abi | tr -d '\r'`" />
|
||||||
</exec>
|
</exec>
|
||||||
<fail message="Tests crashed"/>
|
<fail message="Tests crashed" status="125"/>
|
||||||
</target>
|
</target>
|
||||||
</project>
|
</project>
|
||||||
|
|
|
@ -48,7 +48,7 @@
|
||||||
|
|
||||||
<antcall target="check-for-crash"/>
|
<antcall target="check-for-crash"/>
|
||||||
|
|
||||||
<fail message="Tests failed">
|
<fail message="Tests failed" status="42">
|
||||||
<condition>
|
<condition>
|
||||||
<resourcecontains resource="${output.file}" substring="FAILURES" />
|
<resourcecontains resource="${output.file}" substring="FAILURES" />
|
||||||
</condition>
|
</condition>
|
||||||
|
@ -65,6 +65,6 @@
|
||||||
<arg value="-c" />
|
<arg value="-c" />
|
||||||
<arg value="cat ${archive.name} |ndk-stack -sym obj/local/`adb shell getprop ro.product.cpu.abi | tr -d '\r'`" />
|
<arg value="cat ${archive.name} |ndk-stack -sym obj/local/`adb shell getprop ro.product.cpu.abi | tr -d '\r'`" />
|
||||||
</exec>
|
</exec>
|
||||||
<fail message="Tests crashed"/>
|
<fail message="Tests crashed" status="125"/>
|
||||||
</target>
|
</target>
|
||||||
</project>
|
</project>
|
||||||
|
|
Loading…
Reference in a new issue