summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Roland Levillain <rpl@google.com> 2018-03-29 19:36:29 +0100
committer Roland Levillain <rpl@google.com> 2018-04-03 18:42:30 +0100
commit30d26960774aaa2c5ea647f0a90a562365efab03 (patch)
tree7df7a02b7ebf12948d1536ca721a55e5a2430f06
parent3dfaab08c5adbeaa43f363e3b8ae20f71b0a1e05 (diff)
Start netd before running tests on Buildbot devices.
Ensure netd is running, as otherwise the logcat would be spammed with the following messages on devices running Android O: E NetdConnector: Communications error: java.io.IOException: No such file or directory E mDnsConnector: Communications error: java.io.IOException: No such file or directory Test: art/tools/run-libcore-tests.sh --mode=device Test: art/tools/run-jdwp-tests.sh --mode=device Bug: 74725685 Change-Id: I8e26cf1170741e17c3fcf3bc10fc2f56696c9883
-rwxr-xr-xtools/setup-buildbot-device.sh17
1 files changed, 11 insertions, 6 deletions
diff --git a/tools/setup-buildbot-device.sh b/tools/setup-buildbot-device.sh
index 9373c69bf8..5ce7f5244e 100755
--- a/tools/setup-buildbot-device.sh
+++ b/tools/setup-buildbot-device.sh
@@ -57,14 +57,19 @@ echo -e "${green}Setting local loopback${nc}"
adb shell ifconfig lo up
adb shell ifconfig
-# When netd is running, some libcore and JDWP tests fail with this
-# exception (b/74725685):
+# Ensure netd is running, as otherwise the logcat would be spammed
+# with the following messages on devices running Android O:
#
-# android.system.ErrnoException: connect failed: EBADMSG (Not a data message)
+# E NetdConnector: Communications error: java.io.IOException: No such file or directory
+# E mDnsConnector: Communications error: java.io.IOException: No such file or directory
#
-# Turn it off to make these tests pass.
-echo -e "${green}Turning off netd${nc}"
-adb shell stop netd
+# Netd was initially disabled as an attempt to solve issues with
+# network-related libcore and JDWP tests failing on devices running
+# Android O (MR1) (see b/74725685). These tests are currently
+# disabled. When a better solution has been found, we should remove
+# the following lines.
+echo -e "${green}Turning on netd${nc}"
+adb shell start netd
adb shell getprop init.svc.netd
echo -e "${green}List properties${nc}"