Commit e0620ca3 authored by kinuthia's avatar kinuthia
Browse files

test storing html logs

parent bda322d1
Loading
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1160,6 +1160,7 @@ test-be-to-release:

    - $tmp=((Get-content logs/report-junit-enc-const_br.xml) -split 'name="pytest" ')[1]
    - echo ($tmp -split -split 'timestamp="')[0]
    - cp logs/report-enc-const_br.html $BE_LOGS/report-enc-const_br--sha-$CI_COMMIT_SHORT_SHA.html

    # decoder, no-binaural, constant brate
    - $zero_errors_dec_const_br_no_binaural=0
@@ -1168,6 +1169,7 @@ test-be-to-release:

    - $tmp=((Get-content logs/report-junit-dec-const_br-no_binaural.xml) -split 'name="pytest" ')[1]
    - echo ($tmp -split -split 'timestamp="')[0]
    - cp logs/report-dec-const_br-no_binaural.html $BE_LOGS/report-dec-const_br-no_binaural--sha-$CI_COMMIT_SHORT_SHA.html

    # decoder, binaural, constant brate
    - $zero_errors_dec_const_br_binaural=0
@@ -1176,6 +1178,7 @@ test-be-to-release:

    - $tmp=((Get-content logs/report-junit-dec-const_br-binaural.xml) -split 'name="pytest" ')[1]
    - echo ($tmp -split -split 'timestamp="')[0]
    - cp logs/report-dec-const_br-binaural.html $BE_LOGS/report-dec-const_br-binaural--sha-$CI_COMMIT_SHORT_SHA.html

    # decoder, head_rot
    - $zero_errors_dec_head_rot=0
@@ -1184,6 +1187,7 @@ test-be-to-release:

    - $tmp=((Get-content logs/report-junit-dec-head_rot.xml) -split 'name="pytest" ')[1]
    - echo ($tmp -split -split 'timestamp="')[0]
    - cp logs/report-dec-head_rot.html $BE_LOGS/report-dec-head_rot--sha-$CI_COMMIT_SHORT_SHA.html

    # decoder, non-diegetic
    - $zero_errors_dec_non_diegetic=0
@@ -1192,6 +1196,7 @@ test-be-to-release:

    - $tmp=((Get-content logs/report-junit-dec-non_diegetic.xml) -split 'name="pytest" ')[1]
    - echo ($tmp -split -split 'timestamp="')[0]
    - cp logs/report-dec-non_diegetic.html $BE_LOGS/report-dec-non_diegetic--sha-$CI_COMMIT_SHORT_SHA.html

    # decoder, render_conf
    - $zero_errors_dec_render_conf=0
@@ -1200,6 +1205,7 @@ test-be-to-release:

    - $tmp=((Get-content logs/report-junit-dec-render_conf.xml) -split 'name="pytest" ')[1]
    - echo ($tmp -split -split 'timestamp="')[0]
    - cp logs/report-dec-render_conf.html $BE_LOGS/report-dec-render_conf--sha-$CI_COMMIT_SHORT_SHA.html

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