Commit ed932a58 authored by norvell's avatar norvell
Browse files

Cleanup in parse_commands.py and test_param_file.py

parent 620b69d8
Loading
Loading
Loading
Loading
Loading
+0 −23
Original line number Diff line number Diff line
@@ -83,19 +83,6 @@ if __name__ == '__main__':
                args.append(arg)
            cmd = ' '.join(args)
            
            #arg1 = cmd.split()[0]
            #root_folder = arg1[0:arg1.find("ivas-codec/")+10]
            #cmd = cmd.replace(root_folder + r'/IVAS_dec', '$CUT_DEC_BIN')
            #cmd = cmd.replace(r'\\', '/')
            #cmd = cmd.replace(root_folder + r'/scripts/', TESTV_PATH)
            #cmd = cmd.replace('scripts/', TESTV_PATH) # To catch relative paths            
            # inputs = cmd.count(root_folder) - 1
            # if ".fer " in cmd:
            #     cmd = cmd.replace(root_folder + r'/tests/ref', REF_PATH + r'ref', 1)
            # else:
            #     cmd = cmd.replace(root_folder + r'/tests/dut', REF_PATH + r'ref', inputs)
            # cmd = cmd.replace(root_folder + r'/tests/', CUT_PATH)
            
            if 'VOIP' in cmd:
                outfile = outfile_jbm
            else:
@@ -132,16 +119,6 @@ if __name__ == '__main__':
                args.append(arg)
            cmd = ' '.join(args)

            # arg1 = cmd.split()[0]
            # root_folder = arg1[0:arg1.find("ivas-codec/")+10]
        
            # cmd = cmd.replace(r'\\', '/')
  
            # cmd = cmd.replace(root_folder + r'/IVAS_rend', '$CUT_REND_BIN')
            # cmd = cmd.replace(root_folder + r'/scripts/', TESTV_PATH)
            # cmd = cmd.replace(root_folder + r'/tests/renderer/data/', TESTV_PATH + r'renderer/data/')            
            # cmd = cmd.replace(root_folder + r'/tests/', CUT_PATH)            

            if "cut" in cmd:
                outfile.write(cmd+'\n')
            out = re.search(r"-o\s(([\S]+)(.wav|.raw|.pcm))", cmd)
+1 −1
Original line number Diff line number Diff line
@@ -165,7 +165,7 @@ def test_param_file_tests(
        not bitrate.isdigit()
        and "-dtx" in enc_split
        and "-sba" in enc_split
        and testv_file.split("/")[test_vector_path.count("/")+1].startswith("stv")
        and Path(testv_file).name.startswith("stv")
    ):
        sba_br_switching_dtx = 1
        cut_file = pre_proc_input(testv_file, fs)