Commit 75b17415 authored by Vladimir Malenovsky's avatar Vladimir Malenovsky
Browse files

call _run_cmd() instead of run_cmd() in wrappers

parent e16bbaab
Loading
Loading
Loading
Loading
Loading
+6 −8
Original line number Diff line number Diff line
@@ -94,30 +94,28 @@ def _run_cmd(cmd, test_info=None, env=None ):

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


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, test_info=test_info, env=env)
    _run_cmd(cmd, test_info=test_info, env=env)


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)
    _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):
    if BIN_SUFFIX_MERGETARGET in cmd[0]:
        logging.info(f"\nREF decoder command:\n\t{' '.join(cmd)}\n")
    else:
        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, 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)
    _run_cmd(cmd, test_info=test_info, env=env)


def check_BE(