tools/variations/bisect_variations.py
def _RunVariations(browser_path, url, extra_browser_args, variations_args):
  """Launches browser with given variations.

  Args:
      browser_path: Browser executable file.
      url: The webpage URL browser goes to after it launches.
      extra_browser_args: A list of extra commandline switches browser runs
          with.
      variations_args: A list of commandline switches that defines the
          variations cmd browser runs with.

  Returns:
      A set of (returncode, stdout, stderr) from browser subprocess.
  """
  command = [os.path.abspath(browser_path)]
  if url:
    command.append(url)
  tempdir = tempfile.mkdtemp(prefix='bisect_variations_tmp')
  command.extend(_BuildBrowserArgs(user_data_dir=tempdir,
                                   extra_browser_args=extra_browser_args,
                                   variations_args=variations_args))
  logging.debug(' '.join(command))

  subproc = subprocess.Popen(
      command, bufsize=-1, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
  stdout, stderr = subproc.communicate()
  shutil.rmtree(tempdir, True)
  return (subproc.returncode, stdout, stderr)
Launches browser with given variations.

  Args:
      browser_path: Browser executable file.
      url: The webpage URL browser goes to after it launches.
      extra_browser_args: A list of extra commandline switches browser runs
          with.
      variations_args: A list of commandline switches that defines the
          variations cmd browser runs with.

  Returns:
      A set of (returncode, stdout, stderr) from browser subprocess.
  
Launches browser with given variations.
Launches browser with given variations .
def _RunVariations(browser_path, url, extra_browser_args, variations_args):
  command = [os.path.abspath(browser_path)]
  if url:
    command.append(url)
  tempdir = tempfile.mkdtemp(prefix='bisect_variations_tmp')
  command.extend(_BuildBrowserArgs(user_data_dir=tempdir,
                                   extra_browser_args=extra_browser_args,
                                   variations_args=variations_args))
  logging.debug(' '.join(command))
  subproc = subprocess.Popen(
      command, bufsize=-1, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
  stdout, stderr = subproc.communicate()
  shutil.rmtree(tempdir, True)
  return (subproc.returncode, stdout, stderr)
def _RunVariations ( browser_path , url , extra_browser_args , variations_args ) : command = [ os . path . abspath ( browser_path ) ] if url : command . append ( url ) tempdir = tempfile . mkdtemp ( prefix = 'bisect_variations_tmp' ) command . extend ( _BuildBrowserArgs ( user_data_dir = tempdir , extra_browser_args = extra_browser_args , variations_args = variations_args ) ) logging . debug ( ' ' . join ( command ) ) subproc = subprocess . Popen ( command , bufsize = - 1 , stdout = subprocess . PIPE , stderr = subprocess . PIPE ) stdout , stderr = subproc . communicate ( ) shutil . rmtree ( tempdir , True ) return ( subproc . returncode , stdout , stderr )
Launches browser with given variations.
Launches browser with given variations .
"""Launches browser with given variations.

  Args:
      browser_path: Browser executable file.
      url: The webpage URL browser goes to after it launches.
      extra_browser_args: A list of extra commandline switches browser runs
          with.
      variations_args: A list of commandline switches that defines the
          variations cmd browser runs with.

  Returns:
      A set of (returncode, stdout, stderr) from browser subprocess.
  """
A set of (returncode, stdout, stderr) from browser subprocess.
A set of ( returncode stdout stderr ) from browser subprocess .
browser_path
Browser executable file.
Browser executable file .
url
The webpage URL browser goes to after it launches.
The webpage URL browser goes to after it launches .
extra_browser_args
A list of extra commandline switches browser runs
with.
A list of extra commandline switches browser runs with .
variations_args
A list of commandline switches that defines the
variations cmd browser runs with.
A list of commandline switches that defines the variations cmd browser runs with .