Commit b0d5558d authored by norvell's avatar norvell
Browse files

Fix for exit codes, correct one job name

parent bc9bec20
Loading
Loading
Loading
Loading
Loading
+6 −15
Original line number Diff line number Diff line
@@ -284,17 +284,9 @@ stages:
    -    touch $MERGED_CSV_ARTIFACT_NAME
    - fi

    - if [ $zero_errors != 1 ]; then
    -     echo "Run errors encountered!"
    # TODO: temporary only to not fail pipelines on crashes in encoder
    -     if [[ "$CI_JOB_NAME" =~ "ivas-pytest-compare_to_ref-short-enc" ]]; then
    -         exit $EXIT_CODE_NON_BE
    -     else
    -         exit $EXIT_CODE_FAIL
    -     fi
    - fi
    - if [ $exit_code -eq 1 ]; then echo "Differences encountered"; exit $EXIT_CODE_NON_BE; fi
    - exit 0
    - if [ $exit_code -eq 1 ]; then echo "Differences encountered"; exit_code=$EXIT_CODE_NON_BE; fi
    - if [ $zero_errors != 1 ]; then echo "Run errors encountered!"; exit_code=$EXIT_CODE_FAIL; fi
    - exit $exit_code

  allow_failure:
    exit_codes:
@@ -374,7 +366,8 @@ stages:
    - regressions_found=0
    - python3 scripts/basop_check_for_changes_in_testcases.py $CSV_BRANCH $CSV_MAIN || regressions_found=$?

    - exit_code=0
    - if [ $exit_code -eq 1 ]; then echo "Differences encountered"; exit_code=$EXIT_CODE_NON_BE; fi
    - if [ $zero_errors_branch != 1 ]; then echo "Run errors encountered!"; exit_code=$EXIT_CODE_NON_BE; fi
    - if [ $regressions_found != 0 ] && ; then
    -    echo "Detected regression wrt to main!"
    -    exit_code=$EXIT_CODE_NON_BE;
@@ -382,8 +375,6 @@ stages:
    -        exit_code=$EXIT_CODE_FAIL;
    -    fi
    - fi
    - 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
@@ -694,7 +685,7 @@ ivas-pytest-compare_to_ref-short-dec:
    - LEVEL_SCALING=1.0
  <<: *ivas-pytest-anchor
  
ivas-pytest-compare_to_ref-short-lev-10:
ivas-pytest-compare_to_ref-short-dec-lev-10:
  extends:
    - .rules-pytest-to-ref-short
    - .test-job-linux