summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYongqin Liu <yongqin.liu@linaro.org>2017-08-22 20:53:31 +0800
committerYongqin Liu <yongqin.liu@linaro.org>2017-08-22 20:53:31 +0800
commit8ca8c5b907d7730e541d0aefbeabfc47223ca8b2 (patch)
treebb07aa50e8179218f7a6d8e69033deebc2ae7099
parentd36aa67aef16d7f04825a683343b38972fb1b04b (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>
-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 48850c4..5c4368a 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 curl tar xz-utils ca-certificates requests" "${SKIP_INSTALL}"
git clone https://github.com/dtmilano/AndroidViewClient
(