lava: Include test logs in uploaded artifact when make check fails
[lttng-ci.git] / 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.022366 seconds and 4 git commands to generate.