Properly fail the GitLab CI system test job when any system test fails

This commit is contained in:
Ondřej Surý 2020-04-22 14:58:55 +02:00
parent e2dd8f48b1
commit 626409aac9

View file

@ -255,8 +255,9 @@ stages:
- *setup_interfaces
- *setup_softhsm
script:
- ( cd bin/tests/system && make -j${TEST_PARALLEL_JOBS:-1} -k check V=1 ) || cat bin/tests/system/test-suite.log
- test -s bin/tests/system/test-suite.log
- cd bin/tests/system && make -j${TEST_PARALLEL_JOBS:-1} -k check V=1
after_script:
- cat bin/tests/system/test-suite.log
.system_test: &system_test_job
<<: *system_test_common
@ -269,6 +270,7 @@ stages:
<<: *system_test_common
allow_failure: true
after_script:
- cat bin/tests/system/test-suite.log
- find bin -name 'tsan.*' -exec python3 util/parse_tsan.py {} \;
artifacts:
expire_in: "1 day"