tester: ignore if killall adb
failed
This commit is contained in:
parent
1cf05b4fd2
commit
8e59bd9c1d
4 changed files with 14 additions and 22 deletions
|
@ -1,5 +1,9 @@
|
||||||
|
# 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
|
||||||
clean:
|
clean:
|
||||||
killall adb
|
killall adb 2>/dev/null || true
|
||||||
|
adb start-server
|
||||||
|
|
||||||
all: clean
|
all: clean
|
||||||
ant debug install
|
ant debug install
|
||||||
|
|
|
@ -18,14 +18,6 @@
|
||||||
</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" />
|
||||||
|
|
|
@ -8,8 +8,12 @@ else
|
||||||
ANT=ant -e
|
ANT=ant -e
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# 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
|
||||||
clean:
|
clean:
|
||||||
killall adb
|
killall adb 2>/dev/null || true
|
||||||
|
$(SDK_PLATFORM_TOOLS_PATH)/adb start-server
|
||||||
$(SDK_PLATFORM_TOOLS_PATH)/adb uninstall org.linphone.test
|
$(SDK_PLATFORM_TOOLS_PATH)/adb uninstall org.linphone.test
|
||||||
$(SDK_PLATFORM_TOOLS_PATH)/adb uninstall org.linphone
|
$(SDK_PLATFORM_TOOLS_PATH)/adb uninstall org.linphone
|
||||||
$(SDK_PATH)/android update test-project --path . -m ../
|
$(SDK_PATH)/android update test-project --path . -m ../
|
||||||
|
|
|
@ -8,14 +8,6 @@
|
||||||
<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" />
|
||||||
|
@ -37,10 +29,10 @@
|
||||||
</exec>
|
</exec>
|
||||||
|
|
||||||
<condition property="has.crashed" >
|
<condition property="has.crashed" >
|
||||||
<or>
|
<or>
|
||||||
<resourcecontains resource="${output.file}" substring="Process crashed" />
|
<resourcecontains resource="${output.file}" substring="Process crashed" />
|
||||||
<resourcecontains resource="${output.file}" substring="Native crash" />
|
<resourcecontains resource="${output.file}" substring="Native crash" />
|
||||||
</or>
|
</or>
|
||||||
|
|
||||||
</condition>
|
</condition>
|
||||||
<exec executable="bash" unless:set="has.crashed">
|
<exec executable="bash" unless:set="has.crashed">
|
||||||
|
|
Loading…
Reference in a new issue