summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMitchell Wills <mwills@google.com>2016-03-08 16:20:55 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2016-03-08 16:20:55 +0000
commitc1e99e6dbd1871c02e35497478247ddc9f8dba61 (patch)
treea85fb65abeae67ab43f8397c505998245c2bdb83 /tests
parent699238e909ebaee0b7f759c4d04efabe75813789 (diff)
parent0855f2c5d14fa420eeb3a8a97c142671c9943329 (diff)
Merge "Ensure ADB is running as root when generating coverage" into nyc-dev
Diffstat (limited to 'tests')
-rwxr-xr-xtests/wifitests/coverage.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/wifitests/coverage.sh b/tests/wifitests/coverage.sh
index e291a1f74..348054137 100755
--- a/tests/wifitests/coverage.sh
+++ b/tests/wifitests/coverage.sh
@@ -37,6 +37,9 @@ EMMA_INSTRUMENT_STATIC=true make -j32 -C $ANDROID_BUILD_TOP -f build/core/main.m
set -x # print commands
+adb root
+adb wait-for-device
+
adb shell rm -f $REMOTE_COVERAGE_OUTPUT_FILE
adb install -r -g "$OUT/data/app/FrameworksWifiTests/FrameworksWifiTests.apk"