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

add correct fix that does not break update_ref = 2

parent 1ee9bab0
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 != "":