Commit 75b60e46 authored by kinuthia's avatar kinuthia
Browse files

[CI] try suppressing pytest output for encoder ref generation

parent 8898d6a0
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -1154,18 +1154,17 @@ test-be-to-release:
    - echo "generate references"

    - $zero_errors_enc_const_br=0
    - ("& python -m pytest .\tests\codec_be_to_accepted_release\encoder\test_encoder_constant_bitrate.py --update_ref 1 --html=logs/report-enc-const_br.html --self-contained-html --junit-xml=logs/report-junit-enc-const_br.xml --testcase_timeout 40" | tee out-null) | Invoke-Expression
    - ("& python -m pytest .\tests\codec_be_to_accepted_release\encoder\test_encoder_constant_bitrate.py --update_ref 1 --html=logs/report-enc-const_br.html --self-contained-html --junit-xml=logs/report-junit-enc-const_br.xml --testcase_timeout 40 | out-null") | Invoke-Expression
    - IF (!(Select-String logs/report-junit-enc-const_br.xml -Pattern 'errors="0"')){$zero_errors_enc_const_br=1; echo "Errors encountered"}

    # - ("& python -m pytest .\tests\codec_be_to_accepted_release\decoder\test_decoder_constant_bitrate_no_binaural.py --update_ref 1 --html=report-dec-const_br-no_binaural.html --self-contained-html --junit-xml=logs/report-junit-dec-const_br-no_binaural.xml --testcase_timeout 40 | tee dec-const_br-non_binaural.txt") | Invoke-Expression

    # decoder binaural
    - $zero_errors_dec_const_br_binaural=0
    - ("& python -m pytest .\tests\codec_be_to_accepted_release\decoder\test_decoder_constant_bitrate_binaural.py --update_ref 1 --html=report-dec-const_br-binaural.html --self-contained-html --junit-xml=logs/report-junit-dec-const_br-binaural.xml --testcase_timeout 40" | tee dec-const_br-binaural.txt ) | Invoke-Expression
    - ("& python -m pytest .\tests\codec_be_to_accepted_release\decoder\test_decoder_constant_bitrate_binaural.py --update_ref 1 --html=report-dec-const_br-binaural.html --self-contained-html --junit-xml=logs/report-junit-dec-const_br-binaural.xml --testcase_timeout 40 | tee dec-const_br-binaural.txt") | Invoke-Expression
    - IF (!(Select-String logs/report-junit-dec-const_br-binaural.xml -Pattern 'errors="0"')){$zero_errors_dec_const_br_binaural=1; echo "Errors encountered"}

    - IF($zero_errors_enc_const_br -ne 0 -or $zero_errors_dec_const_br_binaural -ne 0 ) {echo "Errors encountered"; exit $EXIT_CODE_FAIL}
    - exit 0

  artifacts:
    name: "test-be-to-release--sha-$CI_COMMIT_SHORT_SHA--results"