custom_rules.xml: testers should use killall adb
before starting in case of previous crash hanging adb connection
This commit is contained in:
parent
41f07545be
commit
d5169eaa68
2 changed files with 17 additions and 0 deletions
|
@ -18,6 +18,14 @@
|
||||||
</tstamp>
|
</tstamp>
|
||||||
<echo>Adb log files are put in ${archive.name}.zip</echo>
|
<echo>Adb log files are put in ${archive.name}.zip</echo>
|
||||||
|
|
||||||
|
<!-- Ensure that adb is killed before running anything. This is needed in case
|
||||||
|
the previous execution crashed (while adb still running) because adb will not be able to list atached devices
|
||||||
|
until any adb is running -->
|
||||||
|
<exec executable="bash" >
|
||||||
|
<arg value="-c" />
|
||||||
|
<arg value="killall adb" />
|
||||||
|
</exec>
|
||||||
|
|
||||||
<exec executable="adb" >
|
<exec executable="adb" >
|
||||||
<arg value="logcat" />
|
<arg value="logcat" />
|
||||||
<arg value="-c" />
|
<arg value="-c" />
|
||||||
|
|
|
@ -7,6 +7,15 @@
|
||||||
<tstamp>
|
<tstamp>
|
||||||
<format property="archive.name" pattern="'linphonetester_'yyyyMMdd_HHmmss" />
|
<format property="archive.name" pattern="'linphonetester_'yyyyMMdd_HHmmss" />
|
||||||
</tstamp>
|
</tstamp>
|
||||||
|
|
||||||
|
<!-- Ensure that adb is killed before running anything. This is needed in case
|
||||||
|
the previous execution crashed (while adb still running) because adb will not be able to list atached devices
|
||||||
|
until any adb is running -->
|
||||||
|
<exec executable="bash" >
|
||||||
|
<arg value="-c" />
|
||||||
|
<arg value="killall adb" />
|
||||||
|
</exec>
|
||||||
|
|
||||||
<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" >
|
<exec executable="adb" >
|
||||||
<arg value="logcat" />
|
<arg value="logcat" />
|
||||||
|
|
Loading…
Reference in a new issue