-if [ $exit_code -eq 1 ] && [ $zero_errors == 1 ]; then echo "pytest run had failures, but no errors and non-BE flag present"; exit $EXIT_CODE_NON_BE; fi
-if [ $exit_code -ne 0 ]; then echo "pytest run had errors"; exit $EXIT_CODE_FAIL; fi;
# return exit code from selftest if everything went well with the pytest run
-exit $selftest_exit_code
allow_failure:
exit_codes:
-123
artifacts:
when:always
paths:
-test_output.txt
-scripts/test/logs
-scripts/ref/logs
-report-junit.xml
reports:
junit:report-junit.xml
sanitizer-test-on-main-scheduled:
extends:.test-job-linux-needs-testv-dir
stage:test
rules:
# only run in scheduled pipeline that passes this env var