Commit 403c61ad authored by Jan Kiene's avatar Jan Kiene
Browse files

improve failed testcase parsing and add dbg artifact

parent 2a5b5631
Loading
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -441,13 +441,13 @@ stages:
    - *build-and-create-reference-outputs

    - exit_code=0
    - python3 -m pytest -k "stereo and at" --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=$?
    - 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=$?
    - zero_errors_branch=$(cat $XML_REPORT | grep -c 'errors="0"') || true

    - touch $FAILED_TESTCASES_LIST
    - if [ $exit_code -ne 0 ]; then
    -   exit_code=$EXIT_CODE_NON_BE
    -   grep "FAILED" pytest_log.txt | sed 's/^FAILED //' | awk -F'::' '{print "\"" $1 "::" $2 "\"" }' > $FAILED_TESTCASES_LIST
    -   grep "^FAILED" pytest_log.txt | sed 's/^FAILED //' | awk -F'::' '{print "\"" $1 "::" $2 "\"" }' > $FAILED_TESTCASES_LIST
    - fi

    - cat $FAILED_TESTCASES_LIST
@@ -465,6 +465,7 @@ stages:
      - $XML_REPORT
      - $HTML_REPORT
      - $FAILED_TESTCASES_LIST
      - pytest_log.txt
    expose_as: "pytest compare results"
    reports:
      junit: