diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e4fddcb..d5509e7 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -27,4 +27,4 @@ run_thread_sanitizer: ./ci_scripts/run_thread_sanitizer.sh artifacts: paths: - - cmake-build-release/sanitizer.log.* \ No newline at end of file + - "./cmake-build-release-thread-sanitizer/sanitizer.log.*" diff --git a/ci_scripts/run_thread_sanitizer.sh b/ci_scripts/run_thread_sanitizer.sh index 453cfc8..ba23b48 100755 --- a/ci_scripts/run_thread_sanitizer.sh +++ b/ci_scripts/run_thread_sanitizer.sh @@ -1,9 +1,16 @@ #!/usr/bin/env bash -mkdir cmake-build-release-thread-sunitizer +mkdir cmake-build-release-thread-sanitizer cd cmake-build-release cmake .. -DCMAKE_BUILD_TYPE=RELEASE -DTHREAD_SANITIZER=ON make # run the actual tests with sanitizer enabled, reporting the result -TSAN_OPTIONS="log_path=sanitizer.log exitcode=1" ./bin/tests \ No newline at end of file +TSAN_OPTIONS="log_path=sanitizer.log exitcode=1" ./bin/tests +STATUS_CODE=?$ + +# rename the output log... +mv sanitizer.log.* sanitizer.log +touch sanitizer.log + +exit $STATUS_CODE