Commit bc9bec20 authored by Jan Kiene's avatar Jan Kiene
Browse files

change exit code handling to not mask crashes

parent 04440bc5
Loading
Loading
Loading
Loading
Loading
+7 −7
Original line number Diff line number Diff line
@@ -374,17 +374,17 @@ stages:
    - regressions_found=0
    - python3 scripts/basop_check_for_changes_in_testcases.py $CSV_BRANCH $CSV_MAIN || regressions_found=$?

    - if [ $regressions_found != 0 ]; then
    - exit_code=0
    - if [ $regressions_found != 0 ] && ; then
    -    echo "Detected regression wrt to main!"
    -    exit_code=$EXIT_CODE_NON_BE;
    -    if [ $allow_regressions_flag == 0 ]; then
    -        exit $EXIT_CODE_FAIL;
    -    else
    -        exit $EXIT_CODE_NON_BE;
    -        exit_code=$EXIT_CODE_FAIL;
    -    fi
    - fi
    - if [ $zero_errors_branch != 1 ]; then echo "Run errors encountered!"; exit $EXIT_CODE_NON_BE; fi
    - if [ $exit_code -eq 1 ]; then echo "Differences encountered"; exit $EXIT_CODE_NON_BE; fi
    - exit 0
    - if [ $zero_errors_branch != 1 ]; then echo "Run errors encountered!"; exit_code=$EXIT_CODE_FAIL; fi
    - if [ $exit_code -eq 1 ]; then echo "Differences encountered"; exit_code=$EXIT_CODE_NON_BE; fi
    - exit $exit_code
  after_script:
    - rm -rf tests/dut tests/ref
  allow_failure: