(target)
Build a ninja target, suppressing stdout/stderr
Build a ninja target, suppressing stdout/stderr
Build a ninja target suppressing stdout / stderr
def buildNinjaTarget(target):
    """Build a ninja target, suppressing stdout/stderr"""
    ninja_cmd = ('ninja', '-C', build_dir, target)
    grep_cmd = ('egrep', '-v', '^ninja: (no work to do\.|Entering directory .*/build.)$')
    logger.debug('Building: ' + ' '.join(map(pipes.quote, ninja_cmd)))

    ninja_process = subprocess.Popen(
        ninja_cmd,
        stdout=subprocess.PIPE,
        stderr=subprocess.STDOUT,
        env=None,
        cwd=None)
    grep_process = subprocess.Popen(
        grep_cmd,
        stdin=ninja_process.stdout,
        stdout=None,
        stderr=subprocess.STDOUT,
        env=None,
        cwd=None)
    ninja_process.stdout.close()
    grep_process.wait()
def buildNinjaTarget ( target ) : ninja_cmd = ( 'ninja' , '-C' , build_dir , target ) grep_cmd = ( 'egrep' , '-v' , '^ninja: (no work to do\.|Entering directory .*/build.)$' ) logger . debug ( 'Building: ' + ' ' . join ( map ( pipes . quote , ninja_cmd ) ) ) ninja_process = subprocess . Popen ( ninja_cmd , stdout = subprocess . PIPE , stderr = subprocess . STDOUT , env = None , cwd = None ) grep_process = subprocess . Popen ( grep_cmd , stdin = ninja_process . stdout , stdout = None , stderr = subprocess . STDOUT , env = None , cwd = None ) ninja_process . stdout . close ( ) grep_process . wait ( )