chrome/updater/test/service/win/updater_test_service_control.py
def _RunCommand(command, log_error=True):
  """Run a command and logs stdout/stderr if needed.

  Args:
    command: Command to run.
    log_error: Whether to log the stderr.

  Returns:
    True if the process exits with 0.
  """
  process = subprocess.Popen(command,
                             stdout=subprocess.PIPE,
                             stderr=subprocess.PIPE)
  stdout, stderr = process.communicate()
  logging.info('Command %s stdout:\n %s', command, stdout)
  if log_error and stderr:
    logging.error('Command %s stderr:\n %s', command, stderr)

  return process.returncode == 0
Run a command and logs stdout/stderr if needed.

  Args:
    command: Command to run.
    log_error: Whether to log the stderr.

  Returns:
    True if the process exits with 0.
  
Run a command and logs stdout/stderr if needed.
Run a command and logs stdout / stderr if needed .
def _RunCommand(command, log_error=True):
  process = subprocess.Popen(command,
                             stdout=subprocess.PIPE,
                             stderr=subprocess.PIPE)
  stdout, stderr = process.communicate()
  logging.info('Command %s stdout:\n %s', command, stdout)
  if log_error and stderr:
    logging.error('Command %s stderr:\n %s', command, stderr)
  return process.returncode == 0
def _RunCommand ( command , log_error = True ) : process = subprocess . Popen ( command , stdout = subprocess . PIPE , stderr = subprocess . PIPE ) stdout , stderr = process . communicate ( ) logging . info ( 'Command %s stdout:\n %s' , command , stdout ) if log_error and stderr : logging . error ( 'Command %s stderr:\n %s' , command , stderr ) return process . returncode == 0
Run a command and logs stdout/stderr if needed.
Run a command and logs stdout / stderr if needed .
"""Run a command and logs stdout/stderr if needed.

  Args:
    command: Command to run.
    log_error: Whether to log the stderr.

  Returns:
    True if the process exits with 0.
  """
True if the process exits with 0.
True if the process exits with 0 .
command
Command to run.
Command to run .
log_error
Whether to log the stderr.
Whether to log the stderr .