diff --git a/tests/renderer_short/test_renderer.py b/tests/renderer_short/test_renderer.py index 581f7099c69c5a691c7cc208dea9119bbed6feab..0a8ad0e68916bc77f25f0cbaec4e08654851dcbc 100644 --- a/tests/renderer_short/test_renderer.py +++ b/tests/renderer_short/test_renderer.py @@ -1863,6 +1863,15 @@ def test_multichannel_binaural_headrotation_refvec_rotating( if test_info.config.option.create_ref or test_info.config.option.create_cut: pytest.skip("OTR tests only run for smoke test") + # adjust tolerance for some BASOP cases where abs diff up to 4 is expected + atol = 2 + if out_fmt in ["BINAURAL", "BINAURAL_ROOM_REVERB"] and in_fmt in [ + "5_1_2", + "5_1_4", + "7_1_4", + ]: + atol = 4 + compare_renderer_args( record_property, props_to_record, @@ -1884,6 +1893,7 @@ def test_multichannel_binaural_headrotation_refvec_rotating( "frame_size": "5", }, split_comparison=split_comparison, + atol=atol, ) diff --git a/tests/renderer_short/utils.py b/tests/renderer_short/utils.py index 27e58e4ede4ed340d9a8f9c6eaa0203c433dcee5..eb5a1f5bc163cbe812f700e812154ea2d5cc731b 100644 --- a/tests/renderer_short/utils.py +++ b/tests/renderer_short/utils.py @@ -499,6 +499,7 @@ def compare_renderer_args( ref_kwargs: Dict, cut_kwargs: Dict, split_comparison=False, + atol=2, ): out_file_ref = run_renderer( record_property, @@ -520,7 +521,9 @@ def compare_renderer_args( split_comparison=split_comparison, ) cut, cut_fs = readfile(out_file_cut) - [diff_found, snr, gain_b, max_diff] = check_BE(test_info, ref, ref_fs, cut, cut_fs) + [diff_found, snr, gain_b, max_diff] = check_BE( + test_info, ref, ref_fs, cut, cut_fs, atol + ) if diff_found: pytest.fail( f"CuT not BE to REF! SNR : {snr:3.2f} dB, Gain CuT: {gain_b:1.3f}, Max Diff = {int(max_diff)}"