fix liblinphone tester crash reporting condition
This commit is contained in:
parent
703ba1ae56
commit
d6b35142c0
1 changed files with 5 additions and 2 deletions
|
@ -19,6 +19,10 @@
|
||||||
</tstamp>
|
</tstamp>
|
||||||
<echo>Adb log files are put in ${archive.name}.zip</echo>
|
<echo>Adb log files are put in ${archive.name}.zip</echo>
|
||||||
|
|
||||||
|
<exec executable="adb" >
|
||||||
|
<arg value="logcat" />
|
||||||
|
<arg value="-c" />
|
||||||
|
</exec>
|
||||||
<exec executable="./adb-log-start.sh" >
|
<exec executable="./adb-log-start.sh" >
|
||||||
<arg value=" ${archive.name}" />
|
<arg value=" ${archive.name}" />
|
||||||
</exec>
|
</exec>
|
||||||
|
@ -29,7 +33,6 @@
|
||||||
is used to get output in real time -->
|
is used to get output in real time -->
|
||||||
<arg value="adb shell am instrument -r -w org.linphone.tester/org.linphone.tester.TestRunner | tee ${output.file}"/>
|
<arg value="adb shell am instrument -r -w org.linphone.tester/org.linphone.tester.TestRunner | tee ${output.file}"/>
|
||||||
</exec>
|
</exec>
|
||||||
<!-- hack to stop adb logcat-->
|
|
||||||
<exec executable="bash" >
|
<exec executable="bash" >
|
||||||
<arg value="-c" />
|
<arg value="-c" />
|
||||||
<arg value="kill `cat adb.pid`" />
|
<arg value="kill `cat adb.pid`" />
|
||||||
|
@ -42,7 +45,7 @@
|
||||||
<resourcecontains resource="${output.file}" substring="FAILURES" />
|
<resourcecontains resource="${output.file}" substring="FAILURES" />
|
||||||
</condition>
|
</condition>
|
||||||
</fail>
|
</fail>
|
||||||
<condition property="has.crashed" value="true" else="false">
|
<condition property="has.crashed" >
|
||||||
<resourcecontains resource="${output.file}" substring="Process crashed" />
|
<resourcecontains resource="${output.file}" substring="Process crashed" />
|
||||||
</condition>
|
</condition>
|
||||||
<antcall target="test-crashed"/>
|
<antcall target="test-crashed"/>
|
||||||
|
|
Loading…
Reference in a new issue