testing/chromoting/chromoting_test_utilities.py
def RunCommandInSubProcess(command):
  """Creates a subprocess with command-line that is passed in.

  Args:
    command: The text of command to be executed.
  Returns:
    results: stdout contents of executing the command.
  """

  cmd_line = [command]
  try:
    print('Going to run:\n%s' % command)
    results = subprocess.check_output(cmd_line, stderr=subprocess.STDOUT,
                                      shell=True)
  except subprocess.CalledProcessError as e:
    results = e.output
  finally:
    print(results)
  return results
Creates a subprocess with command-line that is passed in.

  Args:
    command: The text of command to be executed.
  Returns:
    results: stdout contents of executing the command.
  
Creates a subprocess with command-line that is passed in.
Creates a subprocess with command - line that is passed in .
def RunCommandInSubProcess(command):
  cmd_line = [command]
  try:
    print('Going to run:\n%s' % command)
    results = subprocess.check_output(cmd_line, stderr=subprocess.STDOUT,
                                      shell=True)
  except subprocess.CalledProcessError as e:
    results = e.output
  finally:
    print(results)
  return results
def RunCommandInSubProcess ( command ) : cmd_line = [ command ] try : print ( 'Going to run:\n%s' % command ) results = subprocess . check_output ( cmd_line , stderr = subprocess . STDOUT , shell = True ) except subprocess . CalledProcessError as e : results = e . output finally : print ( results ) return results
Creates a subprocess with command-line that is passed in.
Creates a subprocess with command - line that is passed in .
"""Creates a subprocess with command-line that is passed in.

  Args:
    command: The text of command to be executed.
  Returns:
    results: stdout contents of executing the command.
  """
stdout contents of executing the command.
stdout contents of executing the command .
results
command
The text of command to be executed.
The text of command to be executed .