lava: Include test logs in uploaded artifact when make check fails
authorKienan Stewart <kstewart@efficios.com>
Tue, 9 Jan 2024 18:49:32 +0000 (13:49 -0500)
committerKienan Stewart <kstewart@efficios.com>
Tue, 9 Jan 2024 18:49:32 +0000 (13:49 -0500)
Change-Id: I2c216a12f94f377de719ec128a0dae8524f08480
Signed-off-by: Kienan Stewart <kstewart@efficios.com>
scripts/system-tests/run-test-suites.sh

index 21782f1b179f5d5fc6d457cc905e0e5512027403..2637bc44c1efc018fe6346b90a7c5c0e17ddce47 100755 (executable)
@@ -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
This page took 0.032085 seconds and 4 git commands to generate.