Commit 8bd108ed authored by norvell's avatar norvell
Browse files

Merge branch 'basop-ci/fix-result-parsing-for-differing-file-lengths' into 'main'

[BASOP CI] Fix in tests/cmp_pcm.py for differing file lengths -- JBM

See merge request !1599
parents 8d9985ae 615862e2
Loading
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -44,7 +44,11 @@ def cmp_pcm(file1, file2, out_config, fs, get_mld=False, mld_lim=0, abs_tol=0) -
            f"file size in samples: file 1 = {s1.shape[0]},",
            f"file 2 = {s2.shape[0]}",
        )
        return 1, "FAIL: File lengths differ"
        reason = "FAIL: File lengths differ. MAXIMUM ABS DIFF: None"
        if get_mld:
            reason += " - MLD: None"

        return 1, reason

    cmp_result = pyaudio3dtools.audioarray.compare(
        s1, s2, fs, per_frame=False, get_mld=get_mld