aboutsummaryrefslogtreecommitdiff
path: root/automated/android
diff options
context:
space:
mode:
authorVishal Bhoj <vishal.bhoj@linaro.org>2020-03-11 20:01:12 +0530
committermwasilew <milosz.wasilewski@linaro.org>2020-03-12 12:26:19 +0000
commit7fe187b3d26c4d2429717e13beb9167075f16252 (patch)
tree7fa72df56ceb904d679a806c9a784102a0097b40 /automated/android
parent9cedf070281992d5ae46728d4da59a6c5d4dae44 (diff)
record boot to ui result
Signed-off-by: Vishal Bhoj <vishal.bhoj@linaro.org>
Diffstat (limited to 'automated/android')
-rwxr-xr-xautomated/android/boottime/boottime.sh9
-rw-r--r--automated/android/boottime/boottime.yaml1
2 files changed, 9 insertions, 1 deletions
diff --git a/automated/android/boottime/boottime.sh b/automated/android/boottime/boottime.sh
index cc1256d..50bb4bb 100755
--- a/automated/android/boottime/boottime.sh
+++ b/automated/android/boottime/boottime.sh
@@ -29,13 +29,20 @@ done
install_deps 'curl tar xz-utils usbutils' "${SKIP_INSTALL}"
+create_out_dir "${OUTPUT}"
+
+# LAVA itself will begin the test only after reaching to prompt.
+# It is safe to report that system has booted to prompt
+echo "BOOT_TO_CONSOLE pass" > ./boot_result.txt
+
initialize_adb
adb_root
# wait till boot completed
wait_boot_completed "${BOOT_TIMEOUT}"
-create_out_dir "${OUTPUT}"
+echo "BOOT_TO_UI pass" >> boot_result.txt
+mv boot_result.txt output/
adb_push "./device-script.sh" "/data/local/tmp/"
info_msg "device-${ANDROID_SERIAL}: About to run boottime ${OPERATION} ${COLLECT_NO}..."
adb shell "/data/local/tmp/device-script.sh ${OPERATION} ${COLLECT_NO}" \
diff --git a/automated/android/boottime/boottime.yaml b/automated/android/boottime/boottime.yaml
index 58f4a3d..791aeed 100644
--- a/automated/android/boottime/boottime.yaml
+++ b/automated/android/boottime/boottime.yaml
@@ -36,4 +36,5 @@ run:
- cd ./automated/android/boottime
- ./boottime.sh -S "${SKIP_INSTALL}" -s "${ANDROID_SERIAL}" -t "${BOOT_TIMEOUT}" -o "${OPERATION}" -n "${COLLECT_NO}"
- if [ "${OPERATION}" = "ANALYZE" ]; then ../../utils/upload-to-artifactorial.sh -a "output/boottime.tgz" -u "${URL}" -t "${TOKEN}"; fi
+ - ../../utils/send-to-lava.sh ./output/boot_result.txt
- ../../utils/send-to-lava.sh ./output/result.txt