From ed2a527926b87c148c80702255d8d42edb948726 Mon Sep 17 00:00:00 2001 From: Erik Norvell Date: Tue, 6 Feb 2024 17:29:13 +0100 Subject: [PATCH] Ignore metadata difference if get_mld is set and get_mld_lim is >0 --- .../test_masa_enc_dec.py | 20 +++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/tests/codec_be_on_mr_nonselection/test_masa_enc_dec.py b/tests/codec_be_on_mr_nonselection/test_masa_enc_dec.py index 3c49f9f21c..c8338e4212 100644 --- a/tests/codec_be_on_mr_nonselection/test_masa_enc_dec.py +++ b/tests/codec_be_on_mr_nonselection/test_masa_enc_dec.py @@ -211,15 +211,19 @@ def test_masa_enc_dec( mld = float(reason.split(':')[1].split()[0]) record_property("MLD",mld) - # Fail if compare fails compare result - if metacmp_res == False and pcmcmp_res != 0: - pytest.fail("Metadata and transport output difference detected") - elif metacmp_res == False: - pytest.fail("Metadata output difference detected") - elif pcmcmp_res != 0: - pytest.fail("Transport output difference detected") + if get_mld and get_mld_lim > 0: + if pcmcmp_res != 0: + pytest.fail(reason) else: - print("Comparison bit exact") + # Fail if compare fails compare result + if metacmp_res == False and pcmcmp_res != 0: + pytest.fail("Metadata and transport output difference detected") + elif metacmp_res == False: + pytest.fail("Metadata output difference detected") + elif pcmcmp_res != 0: + pytest.fail("Transport output difference detected") + else: + print("Comparison bit exact") else: # Compare audio outputs -- GitLab