diff options
author | Milosz Wasilewski <milosz.wasilewski@linaro.org> | 2015-09-17 10:38:43 +0100 |
---|---|---|
committer | Milosz Wasilewski <milosz.wasilewski@linaro.org> | 2015-10-07 14:51:58 +0100 |
commit | 1530ae799754a890d2340d34aa480ba7360afc3c (patch) | |
tree | 9b817d0b92c1b3d7d18bb38626251978ca70eddf /tear-down.sh | |
parent | 6776aea2f8bed4ca0d50c98c1f8075d8052f19a5 (diff) |
Added support for 'usb only' devices
The assumption about running with IP based adb connection was removed.
Now it should be possible to run with usb based adb connection in LAVA
Added templates and support for Nexus9 benchmarking
Added getprop to debug information
Target: fixed conditions for serial/IP address check
Note: Using Nexus10 as a target device as WA doesn't support Nexus9 yet.
Change-Id: I5188fa6bf919e85ccae989ba34a5704fb329b8a0
Signed-off-by: Milosz Wasilewski <milosz.wasilewski@linaro.org>
Diffstat (limited to 'tear-down.sh')
-rwxr-xr-x | tear-down.sh | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/tear-down.sh b/tear-down.sh index ad529e8..3211aea 100755 --- a/tear-down.sh +++ b/tear-down.sh @@ -2,6 +2,10 @@ IPADDR=`cat IPADDR` adb devices -echo "Disconnecting adb from $IPADDR:5555" -adb disconnect $IPADDR:5555 -adb devices +expr "$IPADDR" : '[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*$' +if [ $? -eq 0 ] +then + echo "Disconnecting adb from $IPADDR:5555" + adb disconnect $IPADDR:5555 + adb devices +fi |