Loading tests/codec_be_on_mr_nonselection/test_sba.py +6 −7 Original line number Diff line number Diff line Loading @@ -760,7 +760,7 @@ def sba_enc( if SID == 1: long_tag_ext += "_SID" if plc_pattern is not None: long_tag_ext += "_SID" + "_" + plc_pattern long_tag_ext += "_" + plc_pattern dut_pkt_file = f"{dut_out_dir}/{tag_out}{long_tag_ext}.192" ref_pkt_file = f"{ref_out_dir}/{tag_out}{long_tag_ext}.192" ref_pkt_file_dutenc = f"{ref_out_dir}/{tag_out}{short_tag_ext}_dutenc.192" Loading Loading @@ -826,12 +826,8 @@ def sba_enc( with open(ref_pkt_file, "rb") as fp_in: with open(ref_pkt_file_cut, "wb") as fp_out: fr_cnt, cut_cnt = cut_from_start(fp_in, fp_out, 0, True) with open(ref_pkt_file_dutenc, "rb") as fp_in: with open(ref_pkt_file_dutenc_cut, "wb") as fp_out: fr_cnt, cut_cnt = cut_from_start(fp_in, fp_out, 0, True) if not keep_files: os.remove(ref_pkt_file) os.remove(ref_pkt_file_dutenc) if update_ref == 0: with open(dut_pkt_file, "rb") as fp_in: with open(dut_pkt_file_cut, "wb") as fp_out: Loading Loading @@ -886,9 +882,12 @@ def sba_dec( if gain_flag != -1: long_tag_ext += f"_Gain{gain_flag}" if SID == 1: long_tag_ext += "_SID_cut" long_tag_ext += "_SID" if plc_pattern is not None: long_tag_ext += "_SID" + "_" + plc_pattern long_tag_ext += "_" + plc_pattern if SID == 1: long_tag_ext += "_cut" dut_out_dir = f"{dut_base_path}/sba_bs/raw" ref_out_dir = f"{reference_path}/sba_bs/raw" Loading Loading
tests/codec_be_on_mr_nonselection/test_sba.py +6 −7 Original line number Diff line number Diff line Loading @@ -760,7 +760,7 @@ def sba_enc( if SID == 1: long_tag_ext += "_SID" if plc_pattern is not None: long_tag_ext += "_SID" + "_" + plc_pattern long_tag_ext += "_" + plc_pattern dut_pkt_file = f"{dut_out_dir}/{tag_out}{long_tag_ext}.192" ref_pkt_file = f"{ref_out_dir}/{tag_out}{long_tag_ext}.192" ref_pkt_file_dutenc = f"{ref_out_dir}/{tag_out}{short_tag_ext}_dutenc.192" Loading Loading @@ -826,12 +826,8 @@ def sba_enc( with open(ref_pkt_file, "rb") as fp_in: with open(ref_pkt_file_cut, "wb") as fp_out: fr_cnt, cut_cnt = cut_from_start(fp_in, fp_out, 0, True) with open(ref_pkt_file_dutenc, "rb") as fp_in: with open(ref_pkt_file_dutenc_cut, "wb") as fp_out: fr_cnt, cut_cnt = cut_from_start(fp_in, fp_out, 0, True) if not keep_files: os.remove(ref_pkt_file) os.remove(ref_pkt_file_dutenc) if update_ref == 0: with open(dut_pkt_file, "rb") as fp_in: with open(dut_pkt_file_cut, "wb") as fp_out: Loading Loading @@ -886,9 +882,12 @@ def sba_dec( if gain_flag != -1: long_tag_ext += f"_Gain{gain_flag}" if SID == 1: long_tag_ext += "_SID_cut" long_tag_ext += "_SID" if plc_pattern is not None: long_tag_ext += "_SID" + "_" + plc_pattern long_tag_ext += "_" + plc_pattern if SID == 1: long_tag_ext += "_cut" dut_out_dir = f"{dut_base_path}/sba_bs/raw" ref_out_dir = f"{reference_path}/sba_bs/raw" Loading