X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=scripts%2Fsystem-tests%2Frun-test-suites.sh;h=2637bc44c1efc018fe6346b90a7c5c0e17ddce47;hb=9ac936bcec3207cb1e23491909c9c1668033ba95;hp=21782f1b179f5d5fc6d457cc905e0e5512027403;hpb=bf55e3f44278a1bf35bd7fef383963cff2c4bf16;p=lttng-ci.git 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