Loading tests/renderer/utils.py +9 −4 Original line number Diff line number Diff line Loading @@ -67,6 +67,7 @@ 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. Loading @@ -78,6 +79,7 @@ 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) Loading @@ -87,6 +89,7 @@ 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) Loading @@ -106,6 +109,7 @@ 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") Loading @@ -113,6 +117,7 @@ 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) Loading Loading
tests/renderer/utils.py +9 −4 Original line number Diff line number Diff line Loading @@ -67,6 +67,7 @@ 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. Loading @@ -78,6 +79,7 @@ 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) Loading @@ -87,6 +89,7 @@ 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) Loading @@ -106,6 +109,7 @@ 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") Loading @@ -113,6 +117,7 @@ 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) Loading