Skip to content

Commit

Permalink
noninteractive-tradefed: add ip address when ping failed
Browse files Browse the repository at this point in the history
to help investigation with more debug information

Signed-off-by: Yongqin Liu <[email protected]>
  • Loading branch information
liuyq committed Apr 3, 2023
1 parent 1f4990d commit 30cac04
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions automated/android/noninteractive-tradefed/tradefed.sh
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ if adb shell 'ping -c 10 '"${SERVER}"'; echo exitcode: $?' | grep -q "exitcode:
report_pass "network-available"
else
report_fail "network-available"
# print more debug information
adb shell ip address
# to be caught by the yaml file
exit 100
fi
Expand Down

0 comments on commit 30cac04

Please sign in to comment.