Commit 0cae04a9 authored by Jan Kiene's avatar Jan Kiene
Browse files

fix artifact-related zip error

parent 6e747abb
Loading
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -454,9 +454,6 @@ stages:
    - rm -rf .pytest_cache || true
    - python3 -m pytest -k "stereo and at" --tb=no -q $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=$?

    - touch $FAILED_TESTCASES_LIST
    - touch $ERRORS_TESTCASES_LIST
    - touch $PYTEST_CACHE_ARTIFACT
    - if [ $exit_code -ne 0 ]; then
    -   exit_code=$EXIT_CODE_NON_BE
    -   zip -r $PYTEST_CACHE_ARTIFACT .pytest_cache
@@ -481,6 +478,10 @@ stages:

    -   exit $exit_code
    - else
    # create empty files to not have errors at artifact stage
    -   touch $FAILED_TESTCASES_LIST
    -   touch $ERRORS_TESTCASES_LIST
    -   touch $PYTEST_CACHE_ARTIFACT
    -   *print-results-banner
    -   echo "All testcases are bitexact."
    - fi
@@ -497,6 +498,7 @@ stages:
      - $XML_REPORT
      - $HTML_REPORT
      - $FAILED_TESTCASES_LIST
      - $ERRORS_TESTCASES_LIST
      - pytest_log.txt
      - $PYTEST_CACHE_ARTIFACT
    expose_as: "pytest compare results"