From: Kienan Stewart Date: Tue, 9 Jan 2024 18:49:32 +0000 (-0500) Subject: lava: Include test logs in uploaded artifact when make check fails X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=9ac936bcec3207cb1e23491909c9c1668033ba95;p=lttng-ci.git lava: Include test logs in uploaded artifact when make check fails Change-Id: I2c216a12f94f377de719ec128a0dae8524f08480 Signed-off-by: Kienan Stewart --- diff --git a/scripts/system-tests/run-test-suites.sh b/scripts/system-tests/run-test-suites.sh index 21782f1..2637bc4 100755 --- a/scripts/system-tests/run-test-suites.sh +++ b/scripts/system-tests/run-test-suites.sh @@ -91,4 +91,8 @@ else echo 'root_destructive_tests not found' fi +if [[ "${failed_tests}" != "0" ]] ; then + find tests/ -iname '*.trs' -print0 -or -iname '*.log' -print0 | tar czf /tmp/coredump/logs.tgz --null -T - +fi + exit $failed_tests