ci/android: stop cuttlefish before copying the logs, to log everything

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33499>
This commit is contained in:
Antonio Ospite
2025-02-18 15:53:59 +01:00
committed by Marge Bot
parent 6d4ebb3ff4
commit 0a267694db

View File

@@ -30,16 +30,15 @@ pushd /cuttlefish
# Add a function to perform some tasks when exiting the script
function my_atexit()
{
# shellcheck disable=SC2317
HOME=/cuttlefish stop_cvd -wait_for_launcher=10
# shellcheck disable=SC2317
cp /cuttlefish/cuttlefish/instances/cvd-1/logs/logcat $RESULTS_DIR || true
# shellcheck disable=SC2317
cp /cuttlefish/cuttlefish/instances/cvd-1/kernel.log $RESULTS_DIR || true
# shellcheck disable=SC2317
cp /cuttlefish/cuttlefish/instances/cvd-1/logs/launcher.log $RESULTS_DIR || true
# shellcheck disable=SC2317
HOME=/cuttlefish stop_cvd -wait_for_launcher=10
}
# stop cuttlefish if the script ends prematurely or is interrupted