summaryrefslogtreecommitdiff
path: root/automated/android/boottime/boottime.sh
diff options
context:
space:
mode:
Diffstat (limited to 'automated/android/boottime/boottime.sh')
-rwxr-xr-xautomated/android/boottime/boottime.sh7
1 files changed, 3 insertions, 4 deletions
diff --git a/automated/android/boottime/boottime.sh b/automated/android/boottime/boottime.sh
index 1ddf3c5..93b6f4d 100755
--- a/automated/android/boottime/boottime.sh
+++ b/automated/android/boottime/boottime.sh
@@ -6,12 +6,13 @@ BOOT_TIMEOUT="300"
OPERATION="COLLECT"
COLLECT_NO="1"
OUTPUT="$(pwd)/output"
+SKIP_INSTALL='true'
. ../../lib/sh-test-lib
. ../../lib/android-test-lib
usage() {
- echo "Usage: $0 [-S <skip_install>] [-s <android_serial>] [-t <boot_timeout>] [-o <COLLECT|ANALYZE>] [-n <collect_no>]" 1>&2
+ echo "Usage: $0 [-S skip_install <true|false>] [-s <android_serial>] [-t <boot_timeout>] [-o <COLLECT|ANALYZE>] [-n <collect_no>]" 1>&2
exit 1
}
@@ -26,15 +27,13 @@ while getopts ":S:s:t:o:n:" o; do
esac
done
-PKG_DEPS="usbutils"
-install_deps "${PKG_DEPS}"
initialize_adb
# wait till the launcher displayed
wait_homescreen "${BOOT_TIMEOUT}"
create_out_dir "${OUTPUT}"
-install_deps 'curl tar xz-utils' "${SKIP_INSTALL}"
+install_deps 'curl tar xz-utils usbutils' "${SKIP_INSTALL}"
adb_push "./device-script.sh" "/data/local/tmp/"
info_msg "device-${ANDROID_SERIAL}: About to run boottime ${OPERATION} ${COLLECT_NO}..."