Loading tests/renderer/utils.py +11 −12 Original line number Diff line number Diff line Loading @@ -67,8 +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, env, test_info=None): def _run_cmd(cmd, test_info=None, env=None ): """ Helper function for running some command. Raises a SystemError if either the return code is non-zero or a USAN printout is detected Loading @@ -93,29 +92,29 @@ def _run_cmd(cmd, env, test_info=None): raise SystemError(error) def run_cmd(cmd, test_info, env=None): def run_cmd(cmd, test_info=None, env=None): logging.info(f"\nRunning command\n{' '.join(cmd)}\n") _run_cmd(cmd, env, test_info) _run_cmd(cmd, env=env, test_info=test_info) def run_isar_ext_rend_cmd(cmd, env=None): def run_isar_ext_rend_cmd(cmd, test_info=None, env=None): logging.info(f"\nRunning ISAR EXT REND command\n{' '.join(cmd)}\n") _run_cmd(cmd, env) run_cmd(cmd, test_info=test_info, env=env) def run_ivas_isar_enc_cmd(cmd, env=None): 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, env) run_cmd(cmd, test_info=test_info, env=env) def run_ivas_isar_dec_cmd(cmd, env=None): 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, env) run_cmd(cmd, test_info=test_info, env=env) def run_isar_post_rend_cmd(cmd, env=None): 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, env) run_cmd(cmd, test_info=test_info, env=env) def check_BE( Loading Loading
tests/renderer/utils.py +11 −12 Original line number Diff line number Diff line Loading @@ -67,8 +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, env, test_info=None): def _run_cmd(cmd, test_info=None, env=None ): """ Helper function for running some command. Raises a SystemError if either the return code is non-zero or a USAN printout is detected Loading @@ -93,29 +92,29 @@ def _run_cmd(cmd, env, test_info=None): raise SystemError(error) def run_cmd(cmd, test_info, env=None): def run_cmd(cmd, test_info=None, env=None): logging.info(f"\nRunning command\n{' '.join(cmd)}\n") _run_cmd(cmd, env, test_info) _run_cmd(cmd, env=env, test_info=test_info) def run_isar_ext_rend_cmd(cmd, env=None): def run_isar_ext_rend_cmd(cmd, test_info=None, env=None): logging.info(f"\nRunning ISAR EXT REND command\n{' '.join(cmd)}\n") _run_cmd(cmd, env) run_cmd(cmd, test_info=test_info, env=env) def run_ivas_isar_enc_cmd(cmd, env=None): 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, env) run_cmd(cmd, test_info=test_info, env=env) def run_ivas_isar_dec_cmd(cmd, env=None): 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, env) run_cmd(cmd, test_info=test_info, env=env) def run_isar_post_rend_cmd(cmd, env=None): 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, env) run_cmd(cmd, test_info=test_info, env=env) def check_BE( Loading