From a2b061a34dd1c5966d76e59d8c1d7680736d1e15 Mon Sep 17 00:00:00 2001 From: Erik Norvell Date: Fri, 24 May 2024 08:40:02 +0900 Subject: [PATCH] Fix in tests/cmp_pcm.py for custom LS configuration --- tests/cmp_pcm.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/cmp_pcm.py b/tests/cmp_pcm.py index 709c8ddb8d..e60f84e0a0 100755 --- a/tests/cmp_pcm.py +++ b/tests/cmp_pcm.py @@ -20,7 +20,8 @@ def cmp_pcm(file1, file2, out_config, fs, get_mld=False, mld_lim=0, abs_tol=0) - print("=====================") out_config = "MONO" if out_config == "" else out_config - if out_config.upper() not in pyivastest.constants.OC_TO_NCHANNELS: + # out_config may be a string or a Path. Wrap in str() to avoid error in case it is a Path. + if str(out_config).upper() not in pyivastest.constants.OC_TO_NCHANNELS: out_config_in_file_names = os.path.splitext(os.path.basename(out_config))[0] nchannels = ( pyivastest.IvasScriptsCommon.IvasScript.get_n_channels_from_ls_layout( -- GitLab