diff options
author | Chase Qi <chase.qi@linaro.org> | 2017-03-22 13:38:34 +0800 |
---|---|---|
committer | Milosz Wasilewski <milosz.wasilewski@linaro.org> | 2017-03-22 14:53:11 +0000 |
commit | 6ee3e9d1f293c2d51736b8ba053e66bd873ad232 (patch) | |
tree | cd2cc150987c2c056a32e2104d44d201ad18fa94 /automated/android/cts/cts.sh | |
parent | ed69cdaedaffee87ca8ec76859cdd8e8ce15c3c0 (diff) |
automated: android: set and use environmental variable ANDROID_SERIAL
When ANDROID_SERIAL set, we don't need to use '-s' to specify device
serial no. any more.
Change-Id: Ide4951c6ab68806a6241b38c3bf001e2e4e15eab
Signed-off-by: Chase Qi <chase.qi@linaro.org>
Diffstat (limited to 'automated/android/cts/cts.sh')
-rwxr-xr-x | automated/android/cts/cts.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/automated/android/cts/cts.sh b/automated/android/cts/cts.sh index 9f5bdc3..8e85d94 100755 --- a/automated/android/cts/cts.sh +++ b/automated/android/cts/cts.sh @@ -23,7 +23,7 @@ while getopts ':s:o:n:d:c:t:' opt; do case "${opt}" in s) SKIP_INSTALL="${OPTARG}" ;; o) TIMEOUT="${OPTARG}" ;; - n) SN="${OPTARG}" ;; + n) ANDROID_SERIAL="${OPTARG}" ;; d) JDK="${OPTARG}" ;; c) CTS_URL="${OPTARG}" ;; t) TEST_PARAMS="${OPTARG}" ;; @@ -80,7 +80,8 @@ if [ -d android-cts/results ]; then fi # Run CTS test. -./cts-runner.py -t "${TEST_PARAMS}" -n "${SN}" +info_msg "About to run dd speed test on device ${ANDROID_SERIAL}" +./cts-runner.py -t "${TEST_PARAMS}" # Cleanup. rm -f /etc/apt/sources.list.d/cts.list |