From 7f532a7feec89b7deb8a174fd4bbff52e4ccba3c Mon Sep 17 00:00:00 2001 From: Assam Boudjelthia Date: Tue, 5 Dec 2023 14:37:39 +0200 Subject: [PATCH] Coin/Android: print emulator errors/warnings to coin and log file Making emulator errors and warnings available directly in the ci run logs makes it easier to debug issues. Amends 1c27f95d01d5e9a79566cc32c83c1811923e2e5c. Task-number: QTQAINFRA-5596 Change-Id: I2388dcf9fcdcf18803ff03266493584216f92fdc Reviewed-by: Dimitrios Apostolou (cherry picked from commit 23b09c1d2a2467e49f69544f2471c66cd21bff20) Reviewed-by: Qt Cherry-pick Bot --- .../common/linux/android_emulator_launcher.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/coin/provisioning/common/linux/android_emulator_launcher.sh b/coin/provisioning/common/linux/android_emulator_launcher.sh index ac80352e..be222740 100755 --- a/coin/provisioning/common/linux/android_emulator_launcher.sh +++ b/coin/provisioning/common/linux/android_emulator_launcher.sh @@ -75,6 +75,14 @@ do echo "Waiting ${ADB_MAX_TIMEOUT} seconds for emulated device to appear..." timeout ${ADB_MAX_TIMEOUT} "$ADB_EXEC" wait-for-device + # Due to some bug in Coin/Go, we can't have the emulator command stream + # the output to the console while in the background, as Coin will continue + # waiting for it. So, rely on re-directing all output to a log file and + # then printing it out after the emulator is started. + echo "######## Printing out the emulator command logs ########" + cat "${EMULATOR_RUN_LOG_PATH}" + echo "########################################################" + echo "Waiting a few minutes for the emulator to fully boot..." emulator_status=down for _ in $(seq ${ADB_MAX_TIMEOUT})