From 9ac936bcec3207cb1e23491909c9c1668033ba95 Mon Sep 17 00:00:00 2001 From: Kienan Stewart Date: Tue, 9 Jan 2024 13:49:32 -0500 Subject: [PATCH] lava: Include test logs in uploaded artifact when make check fails Change-Id: I2c216a12f94f377de719ec128a0dae8524f08480 Signed-off-by: Kienan Stewart --- scripts/system-tests/run-test-suites.sh | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.34.1