Commit 1493eb53 authored by Jan Kiene's avatar Jan Kiene
Browse files

Merge branch 'ci/fix-implicit-reference-creation-skip-in-pytests' into 'main'

[CI]Fix implicit overwrite of reference binaries in pytest-based tests

See merge request !1868
parents d5dcab3b b581c0d9
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -552,7 +552,7 @@ def encode(
        ref_stats_file = None
        dut_stats_file = None

    if update_ref in [1, 2] and not os.path.exists(ref_out_file):
    if update_ref == 1 or (update_ref == 2 and not os.path.exists(ref_out_file)):
        check_and_makedir(ref_out_dir)

        # call REF encoder
@@ -714,7 +714,7 @@ def decode(
    dut_out_file = f"{dut_out_dir}/{output_file}"
    ref_out_file = f"{ref_out_dir}/{output_file}"

    if update_ref == 1 or update_ref == 2 and not os.path.exists(ref_out_file):
    if update_ref == 1 or (update_ref == 2 and not os.path.exists(ref_out_file)):
        check_and_makedir(ref_out_dir)
        add_option_list = dec_opts_list
        if tracefile_dec != "":