tests: detect instrumentation fail as crash
This commit is contained in:
parent
e444519974
commit
77f5e8d499
2 changed files with 2 additions and 0 deletions
|
@ -43,6 +43,7 @@
|
|||
<resourcecontains resource="${output.file}" substring="longMsg=junit.framework.AssertionFailedError: View with id: '" />
|
||||
<resourcecontains resource="${output.file}" substring="longMsg=java.lang.RuntimeException:" />
|
||||
<resourcecontains resource="${output.file}" substring="longMsg=java.lang.NullPointerException:" />
|
||||
<resourcecontains resource="${output.file}" substring="android.util.AndroidException: INSTRUMENTATION_FAILED:" />
|
||||
</or>
|
||||
</condition>
|
||||
<exec executable="bash" unless:set="has.crashed">
|
||||
|
|
|
@ -35,6 +35,7 @@
|
|||
<resourcecontains resource="${output.file}" substring="longMsg=junit.framework.AssertionFailedError: View with id: '" />
|
||||
<resourcecontains resource="${output.file}" substring="longMsg=java.lang.RuntimeException:" />
|
||||
<resourcecontains resource="${output.file}" substring="longMsg=java.lang.NullPointerException:" />
|
||||
<resourcecontains resource="${output.file}" substring="android.util.AndroidException: INSTRUMENTATION_FAILED:" />
|
||||
</or>
|
||||
</condition>
|
||||
<exec executable="bash" unless:set="has.crashed">
|
||||
|
|
Loading…
Reference in a new issue