Commit 9a7d9e84 authored by Jan Kiene's avatar Jan Kiene
Browse files

fix wrong output config suffix in self_test.py for OSBA/OMASA

parent 4f9565a5
Loading
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -926,7 +926,7 @@ class SelfTest(IvasScriptsCommon.IvasScript):
        entry_dict["cmd"]["bitrate"] = self.test_for_file(enc_cmd.pop())
        mode_name = re.sub("[^0-9a-zA-Z]+", "_", mode[0])
        mono = False
        # print(mode_name)
        is_osba_or_omasa = False
        while enc_cmd:
            next_part = enc_cmd.pop(0)
            if next_part.upper() in MODES:
@@ -950,6 +950,8 @@ class SelfTest(IvasScriptsCommon.IvasScript):
                else:
                    entry_dict["cmd"]["in_config"] = MODES[next_part][ic]
            else:
                if next_part.upper() == "-ISM_SBA" or next_part.upper() == "-ISM_MASA":
                    is_osba_or_omasa = True
                entry_dict["cmd"]["encoptions"].append(next_part)
                # look for parameters to the argument
                while enc_cmd and enc_cmd[0][0] != "-":
@@ -957,7 +959,7 @@ class SelfTest(IvasScriptsCommon.IvasScript):
                        self.test_for_file(enc_cmd.pop(0))
                    )

        if entry_dict["cmd"]["encmodeoption"] == []:
        if entry_dict["cmd"]["encmodeoption"] == [] and not is_osba_or_omasa:
            mono = True
            entry_dict["cmd"]["mono"] = True
        dec_cmd = mode[1].pop().split()