parameters: (target)
docstring: Build a ninja target, suppressing stdout/stderr
docstring_summary: Build a ninja target, suppressing stdout/stderr
docstring_tokens: Build a ninja target suppressing stdout / stderr
function: 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()
function_tokens: 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 ( )