Loading tests/codec_be_on_mr_nonselection/test_param_file.py +16 −11 Original line number Diff line number Diff line Loading @@ -41,7 +41,6 @@ from subprocess import run import pytest import numpy as np from tests.cmp_pcm import cmp_pcm from tests.cmp_stats_files import cmp_stats_files from tests.conftest import DecoderFrontend, EncoderFrontend, parse_properties Loading Loading @@ -215,7 +214,7 @@ def test_param_file_tests( ) # compare binary files extracted from the encoder if get_enc_stats: if update_ref in [0, 2] and get_enc_stats: print("Comparing encoder files") print("=======================\n") Loading @@ -233,15 +232,19 @@ def test_param_file_tests( print("") cmp_result_msg += enc_test_result_msg if encoder_only: props = parse_properties(cmp_result_msg, False, props_to_record) for k, v in props.items(): record_property(k, v) if enc_test_result: pytest.fail("Too high difference in encoder statistics found.") return else: # remove DUT stats file when test result is OK (to save disk space) if not keep_files: os.remove(dut_stats_file) if encoder_only: return # don't proceed with the decoder if user specified --encoder_only on the command line # check for networkSimulator_g192 command line if sim_opts != "": Loading Loading @@ -275,6 +278,7 @@ def test_param_file_tests( ) # check for eid-xor command line if eid_opts != "": eid_split = eid_opts.split() assert len(eid_split) >= 3, "eid-xor expects at least 3 parameters" Loading @@ -291,6 +295,7 @@ def test_param_file_tests( # -> construct netsim output file name eid_xor_outfile = f"{testv_base}_{tag_str}.fer.192" eid_split[-1] = eid_xor_outfile error_insertion( reference_path, dut_base_path, Loading Loading
tests/codec_be_on_mr_nonselection/test_param_file.py +16 −11 Original line number Diff line number Diff line Loading @@ -41,7 +41,6 @@ from subprocess import run import pytest import numpy as np from tests.cmp_pcm import cmp_pcm from tests.cmp_stats_files import cmp_stats_files from tests.conftest import DecoderFrontend, EncoderFrontend, parse_properties Loading Loading @@ -215,7 +214,7 @@ def test_param_file_tests( ) # compare binary files extracted from the encoder if get_enc_stats: if update_ref in [0, 2] and get_enc_stats: print("Comparing encoder files") print("=======================\n") Loading @@ -233,15 +232,19 @@ def test_param_file_tests( print("") cmp_result_msg += enc_test_result_msg if encoder_only: props = parse_properties(cmp_result_msg, False, props_to_record) for k, v in props.items(): record_property(k, v) if enc_test_result: pytest.fail("Too high difference in encoder statistics found.") return else: # remove DUT stats file when test result is OK (to save disk space) if not keep_files: os.remove(dut_stats_file) if encoder_only: return # don't proceed with the decoder if user specified --encoder_only on the command line # check for networkSimulator_g192 command line if sim_opts != "": Loading Loading @@ -275,6 +278,7 @@ def test_param_file_tests( ) # check for eid-xor command line if eid_opts != "": eid_split = eid_opts.split() assert len(eid_split) >= 3, "eid-xor expects at least 3 parameters" Loading @@ -291,6 +295,7 @@ def test_param_file_tests( # -> construct netsim output file name eid_xor_outfile = f"{testv_base}_{tag_str}.fer.192" eid_split[-1] = eid_xor_outfile error_insertion( reference_path, dut_base_path, Loading