summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRebecca Silberstein <silberst@google.com>2018-04-23 12:06:06 -0700
committerRebecca Silberstein <silberst@google.com>2018-04-23 13:17:25 -0700
commit1fd43a9ace3814f13f4a865878c9c11fe5cdd18b (patch)
tree8ce031f957fb720005331c573c0ccef4a50def2e /tests
parent892020ec7d3a11e64cd288e30b72160eee7e4d26 (diff)
update wifi unit test scripts
Need to add "--no-hidden-api-checks" to unit test scripts. Verified by running both runtests and coverage scripts Bug: 78465388 Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh Test: adb shell am instrument -e coverage true --no-hidden-api-checks -w 'com.android.server.wifi.test/com.android.server.wifi.CustomTestRunner' Change-Id: Ice1b62ce035c52d159d9fc2cc83dd5c962cd490f
Diffstat (limited to 'tests')
-rwxr-xr-xtests/wifitests/coverage.sh2
-rwxr-xr-xtests/wifitests/runtests.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/wifitests/coverage.sh b/tests/wifitests/coverage.sh
index fd7055616..6eec65b57 100755
--- a/tests/wifitests/coverage.sh
+++ b/tests/wifitests/coverage.sh
@@ -50,7 +50,7 @@ adb shell rm -f $REMOTE_COVERAGE_OUTPUT_FILE
adb install -r -g "$OUT/data/app/FrameworksWifiTests/FrameworksWifiTests.apk"
-adb shell am instrument -e coverage true -w 'com.android.server.wifi.test/com.android.server.wifi.CustomTestRunner'
+adb shell am instrument -e coverage true --no-hidden-api-checks -w 'com.android.server.wifi.test/com.android.server.wifi.CustomTestRunner'
mkdir -p $OUTPUT_DIR
diff --git a/tests/wifitests/runtests.sh b/tests/wifitests/runtests.sh
index d5b631c81..97ce239a6 100755
--- a/tests/wifitests/runtests.sh
+++ b/tests/wifitests/runtests.sh
@@ -40,5 +40,5 @@ adb wait-for-device
adb install -r -g "$OUT/data/app/FrameworksWifiTests/FrameworksWifiTests.apk"
-adb shell am instrument -w "$@" \
+adb shell am instrument --no-hidden-api-checks -w "$@" \
'com.android.server.wifi.test/com.android.server.wifi.CustomTestRunner'