diff options
author | Assam Boudjelthia <assam.boudjelthia@qt.io> | 2023-12-05 14:37:39 +0200 |
---|---|---|
committer | Assam Boudjelthia <assam.boudjelthia@qt.io> | 2023-12-18 16:41:07 +0000 |
commit | 23b09c1d2a2467e49f69544f2471c66cd21bff20 (patch) | |
tree | 59665f9d0e335a47de6843963de1037a90609430 /coin/provisioning/common | |
parent | 361cc1e22ccb7e39d1d576b05ade872e21842450 (diff) |
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
Pick-to: 6.7
Change-Id: I2388dcf9fcdcf18803ff03266493584216f92fdc
Reviewed-by: Dimitrios Apostolou <jimis@qt.io>
Diffstat (limited to 'coin/provisioning/common')
-rwxr-xr-x | coin/provisioning/common/linux/android_emulator_launcher.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/coin/provisioning/common/linux/android_emulator_launcher.sh b/coin/provisioning/common/linux/android_emulator_launcher.sh index 5184019f..fad20148 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}) |