Skip to content

Commit

Permalink
noninteractive-tradefed: print more network debug information
Browse files Browse the repository at this point in the history
as discussed with the lab team

Signed-off-by: Yongqin Liu <[email protected]>
  • Loading branch information
liuyq committed Oct 25, 2023
1 parent d40e74e commit 123950c
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion automated/android/noninteractive-tradefed/tradefed.sh
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,23 @@ 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
# print more debug information on the DUT side
adb shell ip address || true
adb shell ip route || true
adb shell ping -c 10 8.8.8.8 || true
# ip of the dns server
adb shell ping -c 10 10.66.16.15 || true
# check "Setting DNS servers for network"
# or "DnsResolverService::setResolverConfiguration"
adb logcat -d resolv:V|grep -i dns
# print more debug information on the host side
ip address || true
ip route || true
cat /etc/resolv.conf
ping -c 10 "${SERVER}" || true
ping -c 10 8.8.8.8 || true
# ip of the dns server
ping -c 10 10.66.16.15 || true
# to be caught by the yaml file
exit 100
fi
Expand Down

0 comments on commit 123950c

Please sign in to comment.