summaryrefslogtreecommitdiff
path: root/automated
diff options
context:
space:
mode:
authorYongqin Liu <yongqin.liu@linaro.org>2017-08-22 20:53:31 +0800
committerNaresh Kamboju <naresh.kamboju@linaro.org>2017-08-22 13:29:33 +0000
commit35f8f45b0f42bdd011e2809cc45bad86573e22e1 (patch)
tree5fe36aa06268c31c20a78f6aa706fe607442beb1 /automated
parent6ca52f0a2f61b193a21e7e196cd64d7a3be69c22 (diff)
apk-automation.sh: make it more convenient to run manually
SKIP_INSTALL: change to default true, on PC side, we will only run the install step once for the first time, after that we don't need to specify the SKIP_INSTALL option super user requirement: change to only need the super user permission when run the installation steps. other steps of the test do not need to be run as root Change-Id: I372a0e729e8ca0adf1c56739acf71757c2ae4885 Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
Diffstat (limited to 'automated')
-rwxr-xr-xautomated/android/apk-automation/apk-automation.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/automated/android/apk-automation/apk-automation.sh b/automated/android/apk-automation/apk-automation.sh
index 6f06749..6ea943d 100755
--- a/automated/android/apk-automation/apk-automation.sh
+++ b/automated/android/apk-automation/apk-automation.sh
@@ -4,7 +4,7 @@
. ./../../lib/sh-test-lib
. ./../../lib/android-test-lib
-SKIP_INSTALL="false"
+SKIP_INSTALL="true"
ANDROID_SERIAL=""
BOOT_TIMEOUT="300"
LOOPS="1"
@@ -35,10 +35,10 @@ export OUTPUT
RESULT_FILE="${OUTPUT}/result.txt"
export RESULT_FILE
-! check_root && error_msg "Please run this script as superuser!"
if [ "${SKIP_INSTALL}" = "true" ] || [ "${SKIP_INSTALL}" = "True" ]; then
info_msg "Package installation skipped"
else
+ ! check_root && error_msg "Please run this script as superuser!"
install_deps "git python python-lxml python-pil python-setuptools python-requests ca-certificates curl tar xz-utils" "${SKIP_INSTALL}"
git clone https://github.com/dtmilano/AndroidViewClient
(