diff options
author | Mitchell Wills <mwills@google.com> | 2016-03-07 10:53:27 -0800 |
---|---|---|
committer | Mitchell Wills <mwills@google.com> | 2016-03-07 10:53:27 -0800 |
commit | 0855f2c5d14fa420eeb3a8a97c142671c9943329 (patch) | |
tree | 539f96a05bd3785f2b90f8299f900504164b10cb /tests | |
parent | f38ce9684dc1e5eeae48ef45a75d10c6d738046f (diff) |
Ensure ADB is running as root when generating coverage
If ADB is not already running as root the script will fail because
accessing the test app's data requires root.
Change-Id: Ie93a1597706fae45d6eb34be54761a6f80380110
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/wifitests/coverage.sh | 3 |
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" |