Loading tests/hrtf_binary_loading/utils.py +4 −1 Original line number Diff line number Diff line Loading @@ -296,7 +296,10 @@ def compare_rom_vs_binary( xfail = hrtf_file == HRTF_BINARY_FILE_DIFF_FROM_ROM if test_info.config.option.use_ltv: input_path = LTV_DIR.joinpath(in_file).with_suffix(".wav") ltv_dir = LTV_DIR if test_info.config.option.ltv_dir: ltv_dir = test_info.config.option.ltv_dir input_path = ltv_dir.joinpath(in_file).with_suffix(".wav") else: input_path = TESTV_DIR.joinpath(in_file).with_suffix(".wav") bitstream_path = BITSTREAM_DIR.joinpath(in_file + file_ext) Loading tests/renderer/utils.py +13 −4 Original line number Diff line number Diff line Loading @@ -43,6 +43,7 @@ import pytest from .compare_audio import compare_audio_arrays from .constants import ( LTV_DIR, SCRIPTS_DIR, OUTPUT_PATH_REF, OUTPUT_PATH_CUT, Loading Loading @@ -144,6 +145,7 @@ def check_BE( return diff_found, snr, gain_b, max_diff def run_renderer( record_property, props_to_record, Loading Loading @@ -228,6 +230,13 @@ def run_renderer( if test_info.config.option.create_ref or test_info.config.option.create_cut: FORMAT_TO_FILE = FORMAT_TO_FILE_COMPARETEST elif test_info.config.option.use_ltv: if test_info.config.option.ltv_dir: FORMAT_TO_FILE = dict() for k, v in FORMAT_TO_FILE_LTV: FORMAT_TO_FILE[k] = str(v).replace( LTV_DIR, test_info.config.option.ltv_dir ) else: FORMAT_TO_FILE = FORMAT_TO_FILE_LTV else: FORMAT_TO_FILE = FORMAT_TO_FILE_SMOKETEST Loading Loading
tests/hrtf_binary_loading/utils.py +4 −1 Original line number Diff line number Diff line Loading @@ -296,7 +296,10 @@ def compare_rom_vs_binary( xfail = hrtf_file == HRTF_BINARY_FILE_DIFF_FROM_ROM if test_info.config.option.use_ltv: input_path = LTV_DIR.joinpath(in_file).with_suffix(".wav") ltv_dir = LTV_DIR if test_info.config.option.ltv_dir: ltv_dir = test_info.config.option.ltv_dir input_path = ltv_dir.joinpath(in_file).with_suffix(".wav") else: input_path = TESTV_DIR.joinpath(in_file).with_suffix(".wav") bitstream_path = BITSTREAM_DIR.joinpath(in_file + file_ext) Loading
tests/renderer/utils.py +13 −4 Original line number Diff line number Diff line Loading @@ -43,6 +43,7 @@ import pytest from .compare_audio import compare_audio_arrays from .constants import ( LTV_DIR, SCRIPTS_DIR, OUTPUT_PATH_REF, OUTPUT_PATH_CUT, Loading Loading @@ -144,6 +145,7 @@ def check_BE( return diff_found, snr, gain_b, max_diff def run_renderer( record_property, props_to_record, Loading Loading @@ -228,6 +230,13 @@ def run_renderer( if test_info.config.option.create_ref or test_info.config.option.create_cut: FORMAT_TO_FILE = FORMAT_TO_FILE_COMPARETEST elif test_info.config.option.use_ltv: if test_info.config.option.ltv_dir: FORMAT_TO_FILE = dict() for k, v in FORMAT_TO_FILE_LTV: FORMAT_TO_FILE[k] = str(v).replace( LTV_DIR, test_info.config.option.ltv_dir ) else: FORMAT_TO_FILE = FORMAT_TO_FILE_LTV else: FORMAT_TO_FILE = FORMAT_TO_FILE_SMOKETEST Loading