summaryrefslogtreecommitdiff
path: root/automated/android/bionic-benchmarks
diff options
context:
space:
mode:
authorChase Qi <chase.qi@linaro.org>2017-03-22 13:38:34 +0800
committerMilosz Wasilewski <milosz.wasilewski@linaro.org>2017-03-22 14:53:11 +0000
commit6ee3e9d1f293c2d51736b8ba053e66bd873ad232 (patch)
treecd2cc150987c2c056a32e2104d44d201ad18fa94 /automated/android/bionic-benchmarks
parented69cdaedaffee87ca8ec76859cdd8e8ce15c3c0 (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/bionic-benchmarks')
-rwxr-xr-xautomated/android/bionic-benchmarks/bionic-benchmarks.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/automated/android/bionic-benchmarks/bionic-benchmarks.sh b/automated/android/bionic-benchmarks/bionic-benchmarks.sh
index ae6a618..babe3df 100755
--- a/automated/android/bionic-benchmarks/bionic-benchmarks.sh
+++ b/automated/android/bionic-benchmarks/bionic-benchmarks.sh
@@ -66,8 +66,8 @@ initialize_adb
wait_boot_completed "${TIMEOUT}"
adb_push "./device-script.sh" "/data/local/tmp/"
-info_msg "About to run bionic-benchmarks on device ${SN}"
-adb -s "${SN}" shell /data/local/tmp/device-script.sh "${LOOPS}" 2>&1 \
+info_msg "About to run bionic-benchmarks on device ${ANDROID_SERIAL}"
+adb shell /data/local/tmp/device-script.sh "${LOOPS}" 2>&1 \
| tee "${HOST_OUTPUT}"/device-run.log
adb_pull "${DEVICE_OUTPUT}" "${HOST_OUTPUT}"