summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYongqin Liu <yongqin.liu@linaro.org>2017-09-19 19:18:22 +0800
committerYongqin Liu <yongqin.liu@linaro.org>2017-09-19 19:18:22 +0800
commit75e00176ad5c288dfa9c466ad863de067389ce0a (patch)
tree5cb79f9256f945b0521f95990567ad754268341e
parent21d4bc8775498e68df8b59bbbaad9d48d17d3a45 (diff)
boottime.sh: install curl package
Change-Id: I892fe36ae42f0a74f63f474ff229c983ab1c2f0d Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
-rwxr-xr-xautomated/android/boottime/boottime.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/automated/android/boottime/boottime.sh b/automated/android/boottime/boottime.sh
index b67e4ff..2d271c7 100755
--- a/automated/android/boottime/boottime.sh
+++ b/automated/android/boottime/boottime.sh
@@ -11,12 +11,13 @@ OUTPUT="$(pwd)/output"
. ../../lib/android-test-lib
usage() {
- echo "Usage: $0 [-s <android_serial>] [-t <boot_timeout>] [-o <COLLECT|ANALYZE>] [-n <collect_no>]" 1>&2
+ echo "Usage: $0 [-S <skip_install>] [-s <android_serial>] [-t <boot_timeout>] [-o <COLLECT|ANALYZE>] [-n <collect_no>]" 1>&2
exit 1
}
-while getopts ":s:t:o:n:" o; do
+while getopts ":S:s:t:o:n:" o; do
case "$o" in
+ S) SKIP_INSTALL="${OPTARG}" ;;
s) ANDROID_SERIAL="${OPTARG}" ;;
t) BOOT_TIMEOUT="${OPTARG}" ;;
o) OPERATION="${OPTARG}" ;;
@@ -28,6 +29,7 @@ done
initialize_adb
wait_boot_completed "${BOOT_TIMEOUT}"
create_out_dir "${OUTPUT}"
+install_deps 'curl tar xz-utils' "${SKIP_INSTALL}"
adb_push "./device-script.sh" "/data/local/tmp/"
info_msg "device-${ANDROID_SERIAL}: About to run boottime ${OPERATION} ${COLLECT_NO}..."