aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYongqin Liu <yongqin.liu@linaro.org>2019-01-08 21:48:08 +0800
committerYongqin Liu <yongqin.liu@linaro.org>2019-01-09 12:32:23 +0800
commit1136333f3659ab251096848444d94ae7e478d31a (patch)
tree8be9953ba8fb6913a9438bb69e5b641f4428a825
parent903fc19705197b62a3c93ee652d75005642b94fb (diff)
android-test-lib adb_join_wifi: uninstall the package
after ran the wifi join command to avoid the effect on test result like reported here: https://bugs.linaro.org/show_bug.cgi?id=4236 Change-Id: I15e9710635beddc964456e18e06e8a361d5fae78 Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
-rwxr-xr-xautomated/lib/android-test-lib5
1 files changed, 5 insertions, 0 deletions
diff --git a/automated/lib/android-test-lib b/automated/lib/android-test-lib
index bd49d55..a3cee8b 100755
--- a/automated/lib/android-test-lib
+++ b/automated/lib/android-test-lib
@@ -332,5 +332,10 @@ adb_join_wifi() {
wget http://testdata.validation.linaro.org/apks/wifi/wifi.apk
adb install wifi.apk
adb shell am start -n com.steinwurf.adbjoinwifi/.MainActivity -e ssid "${AP_SSID}" -e password_type WPA -e password "${AP_KEY}"
+
+ # uninstall the packge to avoid effect like reported here:
+ # https://bugs.linaro.org/show_bug.cgi?id=4236
+ sleep 2
+ adb uninstall com.steinwurf.adbjoinwifi
fi
}