def check_call_no_output(args):
    """
    Run a process and check that it returns an OK return code
    and has no output
    :param args:
    :return:
    """
    logger = logging.getLogger(__name__)
    logger.debug("running %s", args)
    process = subprocess.Popen(
        args,
        stdout=subprocess.PIPE,
        stderr=subprocess.PIPE,
    )
    (res_stdout, res_stderr) = process.communicate()
    if process.returncode:
        res_stdout = res_stdout
        res_stderr = res_stderr
        print(res_stdout, end='')
        print(res_stderr, end='')
        raise ValueError('exit code from [{}] was [{}]'.format(" ".join(args), process.returncode))
def check_call_no_output ( args ) : logger = logging . getLogger ( __name__ ) logger . debug ( "running %s" , args ) process = subprocess . Popen ( args , stdout = subprocess . PIPE , stderr = subprocess . PIPE , ) ( res_stdout , res_stderr ) = process . communicate ( ) if process . returncode : res_stdout = res_stdout res_stderr = res_stderr print ( res_stdout , end = '' ) print ( res_stderr , end = '' ) raise ValueError ( 'exit code from [{}] was [{}]' . format ( " " . join ( args ) , process . returncode ) )
Run a process and check that it returns an OK return code
    and has no output
    :param args:
    :return: