Commit 9523179c authored by Jan Kiene's avatar Jan Kiene
Browse files

Revert "print errors in failing renderer calls to add to system-out"

This reverts commit 7f18a2a8.
parent e83a301c
Loading
Loading
Loading
Loading
+4 −9
Original line number Diff line number Diff line
@@ -67,7 +67,6 @@ from pyaudio3dtools.audiofile import readfile
from ..cmp_pcm import cmp_pcm
from ..conftest import get_split_idx, parse_properties


def _run_cmd(cmd, test_info=None, env=None ):
    """
    Helper function for running some command.
@@ -79,7 +78,6 @@ def _run_cmd(cmd, test_info=None, env=None):
    # check for USAN error first
    if "UndefinedBehaviorSanitizer" in stdout:
        error = f"USAN error detected in stdout of command: {' '.join(cmd)}\n{stdout}"
        print(error)
        if test_info is not None:
            test_info.error = error
        raise SystemError(error)
@@ -89,7 +87,6 @@ def _run_cmd(cmd, test_info=None, env=None):
        proc.check_returncode()
    except sp.CalledProcessError as e:
        error = f"Command returned non-zero exit status ({e.returncode}): {' '.join(e.cmd)}\n{e.stderr}\n{e.stdout}"
        print(error)
        if test_info is not None:
            test_info.error = error
        raise SystemError(error)
@@ -109,7 +106,6 @@ def run_ivas_isar_enc_cmd(cmd, test_info=None, env=None):
    logging.info(f"\nRunning IVAS ISAR encoder command\n{' '.join(cmd)}\n")
    _run_cmd(cmd, test_info=test_info, env=env)


def run_ivas_isar_dec_cmd(cmd, test_info=None, env=None):
    if BIN_SUFFIX_MERGETARGET in cmd[0]:
        logging.info(f"\nREF decoder command:\n\t{' '.join(cmd)}\n")
@@ -117,7 +113,6 @@ def run_ivas_isar_dec_cmd(cmd, test_info=None, env=None):
        logging.info(f"\nDUT decoder command:\n\t{' '.join(cmd)}\n")
    _run_cmd(cmd, test_info=test_info, env=env)


def run_isar_post_rend_cmd(cmd, test_info=None, env=None):
    logging.info(f"\nRunning ISAR post renderer command\n{' '.join(cmd)}\n")
    _run_cmd(cmd, test_info=test_info, env=env)