Loading .gitlab-ci.yml +4 −2 Original line number Diff line number Diff line Loading @@ -216,6 +216,8 @@ stages: stage: test needs: ["build-codec-linux-make"] timeout: "240 minutes" variables: MLD_ARTIFACT_NAME: "mld--$CI_JOB_NAME-$CI_JOB_ID--sha-$CI_COMMIT_SHORT_SHA.csv" script: - *print-common-info - *update-scripts-repo Loading @@ -237,7 +239,7 @@ stages: - python3 -m pytest $TEST_SUITE -v --create_cut --html=report.html --self-contained-html --junit-xml=report-junit.xml --mld --dut_encoder_path $DUT_ENCODER_PATH --dut_decoder_path $DUT_DECODER_PATH -n auto --testcase_timeout $testcase_timeout || exit_code=$? - zero_errors=$(cat report-junit.xml | grep -c 'errors="0"') || true - python3 scripts/parse_mld_xml.py report-junit.xml mld.csv - python3 scripts/parse_mld_xml.py report-junit.xml $MLD_ARTIFACT_NAME - if [ $zero_errors != 1 ]; then echo "Run errors encountered!"; exit $EXIT_CODE_FAIL; fi - if [ $exit_code -eq 1 ]; then echo "Differences encountered"; exit $EXIT_CODE_NON_BE; fi Loading @@ -253,7 +255,7 @@ stages: paths: - report-junit.xml - report.html - mld.csv - $MLD_ARTIFACT_NAME expose_as: "pytest mld results" reports: junit: Loading Loading
.gitlab-ci.yml +4 −2 Original line number Diff line number Diff line Loading @@ -216,6 +216,8 @@ stages: stage: test needs: ["build-codec-linux-make"] timeout: "240 minutes" variables: MLD_ARTIFACT_NAME: "mld--$CI_JOB_NAME-$CI_JOB_ID--sha-$CI_COMMIT_SHORT_SHA.csv" script: - *print-common-info - *update-scripts-repo Loading @@ -237,7 +239,7 @@ stages: - python3 -m pytest $TEST_SUITE -v --create_cut --html=report.html --self-contained-html --junit-xml=report-junit.xml --mld --dut_encoder_path $DUT_ENCODER_PATH --dut_decoder_path $DUT_DECODER_PATH -n auto --testcase_timeout $testcase_timeout || exit_code=$? - zero_errors=$(cat report-junit.xml | grep -c 'errors="0"') || true - python3 scripts/parse_mld_xml.py report-junit.xml mld.csv - python3 scripts/parse_mld_xml.py report-junit.xml $MLD_ARTIFACT_NAME - if [ $zero_errors != 1 ]; then echo "Run errors encountered!"; exit $EXIT_CODE_FAIL; fi - if [ $exit_code -eq 1 ]; then echo "Differences encountered"; exit $EXIT_CODE_NON_BE; fi Loading @@ -253,7 +255,7 @@ stages: paths: - report-junit.xml - report.html - mld.csv - $MLD_ARTIFACT_NAME expose_as: "pytest mld results" reports: junit: Loading