Commit cab508e6 authored by Jan Kiene's avatar Jan Kiene
Browse files

format changed files

parent 1a3b444e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -154,7 +154,7 @@ def test_masa_enc_dec(
        dec_met_output_ref = None
        dec_met_output_dut = None

    if (update_ref == 2 or update_ref == 1):
    if update_ref == 2 or update_ref == 1:
        # Encode REF
        ivas_enc(
            ref_encoder_frontend,
+17 −5
Original line number Diff line number Diff line
@@ -382,11 +382,15 @@ def test_param_file_tests(
            if not decoder_only:
                os.remove(f"{dut_base_path}/param_file/enc/{bitstream_file}")
                if sim_opts != "":
                    os.remove(f"{dut_base_path}/param_file/enc/{testv_base}_{tag_str}.192")
                    os.remove(
                        f"{dut_base_path}/param_file/enc/{testv_base}_{tag_str}.192"
                    )
                    os.remove(f"{dut_base_path}/param_file/enc/{netsim_trace_outfile}")
                    os.remove(f"{dut_base_path}/param_file/dec/{tracefile_dec}")
                elif eid_opts != "":
                    os.remove(f"{dut_base_path}/param_file/enc/{testv_base}_{tag_str}.192")
                    os.remove(
                        f"{dut_base_path}/param_file/enc/{testv_base}_{tag_str}.192"
                    )


def encode(
@@ -485,7 +489,11 @@ def simulate(
        assert False, f"networkSimulator_g192 not available for {platform.system()}"

    cmd_opts = sim_opts_list
    if update_ref == 1 or (update_ref == 2 and not os.path.exists(ref_out_file)) or decoder_only:
    if (
        update_ref == 1
        or (update_ref == 2 and not os.path.exists(ref_out_file))
        or decoder_only
    ):
        # call network simulator on REF encoder output
        cmd_opts[1] = f"{ref_out_dir}/{netsim_infile}"
    elif update_ref in [0, 2]:
@@ -531,7 +539,11 @@ def error_insertion(

    cmd_opts = eid_opts_list

    if update_ref == 1 or (update_ref == 2 and not os.path.exists(ref_out_file)) or decoder_only:
    if (
        update_ref == 1
        or (update_ref == 2 and not os.path.exists(ref_out_file))
        or decoder_only
    ):
        # call eid-xor on REF encoder output
        cmd_opts[-3] = f"{ref_out_dir}/{eid_xor_infile}"
    elif update_ref in [0, 2]:
+10 −6
Original line number Diff line number Diff line
@@ -198,6 +198,7 @@ def pytest_addoption(parser):
        default=False,
    )


@pytest.fixture(scope="session", autouse=True)
def update_ref(request):
    """
@@ -569,7 +570,10 @@ def dut_decoder_frontend(dut_decoder_path, request) -> DecoderFrontend:
    Return a :class:`conftest.DecoderFrontend` instance as DUT for the test session.
    """
    decoder = DecoderFrontend(
        dut_decoder_path, "DUT", timeout=request.config.getoption("--testcase_timeout"), fr=request.config.option.dut_fr
        dut_decoder_path,
        "DUT",
        timeout=request.config.getoption("--testcase_timeout"),
        fr=request.config.option.dut_fr,
    )
    yield decoder

+1 −1

File changed.

Contains only whitespace changes.