chrome/test/chromedriver/util.py
def RunCommand(cmd, cwd=None, fileName=None):
  """Runs the given command and returns the exit code.

  Args:
    fileName: file name to redirect output
    cmd: list of command arguments.
    cwd: working directory to execute the command, or None if the current
         working directory should be used.

  Returns:
    The exit code of the command.
  """
  sys.stdout.flush()
  if fileName is not None:
    with open(fileName,"wb") as out:
      process = subprocess.Popen(cmd, cwd=cwd,stdout=out,stderr=out)
  else:
    process = subprocess.Popen(cmd, cwd=cwd)
  process.wait()
  sys.stdout.flush()
  return process.returncode
Runs the given command and returns the exit code.

  Args:
    fileName: file name to redirect output
    cmd: list of command arguments.
    cwd: working directory to execute the command, or None if the current
         working directory should be used.

  Returns:
    The exit code of the command.
  
Runs the given command and returns the exit code.
Runs the given command and returns the exit code .
def RunCommand(cmd, cwd=None, fileName=None):
  sys.stdout.flush()
  if fileName is not None:
    with open(fileName,"wb") as out:
      process = subprocess.Popen(cmd, cwd=cwd,stdout=out,stderr=out)
  else:
    process = subprocess.Popen(cmd, cwd=cwd)
  process.wait()
  sys.stdout.flush()
  return process.returncode
def RunCommand ( cmd , cwd = None , fileName = None ) : sys . stdout . flush ( ) if fileName is not None : with open ( fileName , "wb" ) as out : process = subprocess . Popen ( cmd , cwd = cwd , stdout = out , stderr = out ) else : process = subprocess . Popen ( cmd , cwd = cwd ) process . wait ( ) sys . stdout . flush ( ) return process . returncode
Runs the given command and returns the exit code.
Runs the given command and returns the exit code .
"""Runs the given command and returns the exit code.

  Args:
    fileName: file name to redirect output
    cmd: list of command arguments.
    cwd: working directory to execute the command, or None if the current
         working directory should be used.

  Returns:
    The exit code of the command.
  """
The exit code of the command.
The exit code of the command .
cmd
list of command arguments.
list of command arguments .
cwd
working directory to execute the command, or None if the current
working directory should be used.
working directory to execute the command or None if the current working directory should be used .
fileName
file name to redirect output
file name to redirect output