Commit 8f9b5f8d authored by Vladimir Malenovsky's avatar Vladimir Malenovsky
Browse files

fix wrong glob dir for Dut

parent 7d0628ed
Loading
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -211,6 +211,9 @@ def test_param_file_tests(
        
        # compare binary files extracted from the encoder        
        if update_ref == 2:
            print ("Comparing encoder auxiliary files")
            print ("=================================\n")
            
            msg = ""
            max_diff = 0
            for f in ENC_AUX_FILES:
@@ -224,7 +227,7 @@ def test_param_file_tests(
                
                ref_aux_files = glob.glob(os.path.join(ref_enc_dbg_dir.name, filename + '*'))
                ref_aux_files = [os.path.basename(f) for f in ref_aux_files]
                dut_aux_files = glob.glob(os.path.join(ref_enc_dbg_dir.name, filename + '*'))
                dut_aux_files = glob.glob(os.path.join(dut_enc_dbg_dir.name, filename + '*'))
                dut_aux_files = [os.path.basename(f) for f in dut_aux_files]
                common_aux_files = [f for f in ref_aux_files if f in dut_aux_files]
                
@@ -254,6 +257,8 @@ def test_param_file_tests(
                            print(msg)
                            pytest.fail(msg)

            print ("")

            if max_diff > 0:
                record_property("MAXIMUM ENC DIFF", max_diff)