summaryrefslogtreecommitdiff
path: root/automated/android/tradefed/tradefed.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'automated/android/tradefed/tradefed.yaml')
-rw-r--r--automated/android/tradefed/tradefed.yaml2
1 files changed, 2 insertions, 0 deletions
diff --git a/automated/android/tradefed/tradefed.yaml b/automated/android/tradefed/tradefed.yaml
index baf2a5e..f9d4f9c 100644
--- a/automated/android/tradefed/tradefed.yaml
+++ b/automated/android/tradefed/tradefed.yaml
@@ -53,3 +53,5 @@ run:
# Send test result to LAVA.
- ../../utils/send-to-lava.sh ./output/result.txt
- userdel testuser -f -r || true
+ # When adb device lost, end test job to mark it as 'incomplete'.
+ - if ! adb shell echo ok; then error_fatal "adb device $ANDROID_SERIAL lost!"; fi