From 16754dbd136bd0494baa2b676413b874c717b1fa Mon Sep 17 00:00:00 2001 From: Guilherme Gallo Date: Mon, 14 Apr 2025 01:51:39 -0300 Subject: [PATCH] ci/android: Add gitlab section for logs uploads Signed-off-by: Guilherme Gallo Part-of: --- .gitlab-ci/cuttlefish-runner.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.gitlab-ci/cuttlefish-runner.sh b/.gitlab-ci/cuttlefish-runner.sh index 7fae0f4d7da..9e15b09b36a 100755 --- a/.gitlab-ci/cuttlefish-runner.sh +++ b/.gitlab-ci/cuttlefish-runner.sh @@ -30,6 +30,9 @@ pushd /cuttlefish # Add a function to perform some tasks when exiting the script function my_atexit() { + section_switch cuttlefish_stop "cuttlefish: stop + storing logs" + set -x + # shellcheck disable=SC2317 HOME=/cuttlefish stop_cvd -wait_for_launcher=40 @@ -39,6 +42,9 @@ function my_atexit() 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 + + set +x + section_end cuttlefish_stop } # stop cuttlefish if the script ends prematurely or is interrupted