Commit 74319da3 authored by Jan Kiene's avatar Jan Kiene
Browse files

set REFERENCE_BRANCH correctly

parent 4823811f
Loading
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -416,6 +416,7 @@ stages:
  needs: ["build-codec-linux-make"]
  timeout: "300 minutes"
  variables:
    REFERENCE_BRANCH: "$CI_MERGE_REQUEST_TARGET_BRANCH_NAME"
    XML_REPORT: "report--$CI_JOB_NAME--sha-$CI_COMMIT_SHORT_SHA.xml"
    HTML_REPORT: "report--$CI_JOB_NAME--sha-$CI_COMMIT_SHORT_SHA.html"
    FAILED_TESTCASES_LIST: "failed-testcases.txt"
@@ -441,7 +442,7 @@ stages:

    - exit_code=0
    - python3 -m pytest --tb=no $TEST_SUITE -v --keep_files --create_cut --html=$HTML_REPORT --self-contained-html --junit-xml=$XML_REPORT --mld --ssnr --odg --ref_encoder_path $REF_ENCODER_PATH --ref_decoder_path $REF_DECODER_PATH --dut_encoder_path $DUT_ENCODER_PATH --dut_decoder_path $DUT_DECODER_PATH -n auto --testcase_timeout $testcase_timeout > pytest_log.txt || exit_code=$?
    - zero_errors_branch=$(cat $XML_REPORT_BRANCH | grep -c 'errors="0"') || true
    - zero_errors_branch=$(cat $XML_REPORT | grep -c 'errors="0"') || true

    - touch $FAILED_TESTCASES_LIST
    - if [ $exit_code -ne 0 ]; then