diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1fa026c4f062af7b48510753a242006fe980e342..e69d3dd99e16fa9a5901e79fe49b8f28995753ee 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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 @@ -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 @@ -253,7 +255,7 @@ stages: paths: - report-junit.xml - report.html - - mld.csv + - $MLD_ARTIFACT_NAME expose_as: "pytest mld results" reports: junit: