From 7fe187b3d26c4d2429717e13beb9167075f16252 Mon Sep 17 00:00:00 2001 From: Vishal Bhoj Date: Wed, 11 Mar 2020 20:01:12 +0530 Subject: record boot to ui result Signed-off-by: Vishal Bhoj --- automated/android/boottime/boottime.sh | 9 ++++++++- automated/android/boottime/boottime.yaml | 1 + 2 files changed, 9 insertions(+), 1 deletion(-) (limited to 'automated/android') 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 -- cgit v1.2.3