webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
webkitpy.common.system.executive.Executive Class Reference
Inheritance diagram for webkitpy.common.system.executive.Executive:

Public Member Functions

def __init__ (self)
 
def run_and_throw_if_fail (self, args, quiet=False, decode_output=True, kwargs)
 
def cpu_count (self)
 
def kill_process (self, pid)
 
def check_running_pid (self, pid)
 
def running_pids (self, process_name_filter=None)
 
def wait_newest (self, process_name_filter=None)
 
def wait_limited (self, pid, limit_in_seconds=None, check_frequency_in_seconds=None)
 
def interrupt (self, pid)
 
def kill_all (self, process_name)
 
def command_for_printing (self, args)
 
def run_command (self, args, cwd=None, env=None, input=None, error_handler=None, return_exit_code=False, return_stderr=True, decode_output=True)
 
def popen (self, args, kwargs)
 
def run_in_parallel (self, command_lines_and_cwds, processes=None)
 

Static Public Member Functions

def interpreter_for_script (script_path, fs=None)
 
def shell_command_for_script (script_path, fs=None)
 
def default_error_handler (error)
 
def ignore_error (error)
 

Public Attributes

 pid_to_system_pid
 

Static Public Attributes

 PIPE = subprocess.PIPE
 
 STDOUT = subprocess.STDOUT
 

Constructor & Destructor Documentation

◆ __init__()

def webkitpy.common.system.executive.Executive.__init__ (   self)

Member Function Documentation

◆ check_running_pid()

def webkitpy.common.system.executive.Executive.check_running_pid (   self,
  pid 
)
Return True if pid is alive, otherwise return False.

◆ command_for_printing()

def webkitpy.common.system.executive.Executive.command_for_printing (   self,
  args 
)
Returns a print-ready string representing command args.
The string should be copy/paste ready for execution in a shell.

◆ cpu_count()

def webkitpy.common.system.executive.Executive.cpu_count (   self)

◆ default_error_handler()

def webkitpy.common.system.executive.Executive.default_error_handler (   error)
static

◆ ignore_error()

def webkitpy.common.system.executive.Executive.ignore_error (   error)
static

◆ interpreter_for_script()

def webkitpy.common.system.executive.Executive.interpreter_for_script (   script_path,
  fs = None 
)
static

◆ interrupt()

def webkitpy.common.system.executive.Executive.interrupt (   self,
  pid 
)

◆ kill_all()

def webkitpy.common.system.executive.Executive.kill_all (   self,
  process_name 
)
Attempts to kill processes matching process_name.
Will fail silently if no process are found.

◆ kill_process()

def webkitpy.common.system.executive.Executive.kill_process (   self,
  pid 
)
Attempts to kill the given pid.
Will fail silently if pid does not exist or insufficient permisssions.

◆ popen()

def webkitpy.common.system.executive.Executive.popen (   self,
  args,
  kwargs 
)

◆ run_and_throw_if_fail()

def webkitpy.common.system.executive.Executive.run_and_throw_if_fail (   self,
  args,
  quiet = False,
  decode_output = True,
  kwargs 
)

◆ run_command()

def webkitpy.common.system.executive.Executive.run_command (   self,
  args,
  cwd = None,
  env = None,
  input = None,
  error_handler = None,
  return_exit_code = False,
  return_stderr = True,
  decode_output = True 
)
Popen wrapper for convenience and to work around python bugs.

◆ run_in_parallel()

def webkitpy.common.system.executive.Executive.run_in_parallel (   self,
  command_lines_and_cwds,
  processes = None 
)
Runs a list of (cmd_line list, cwd string) tuples in parallel and returns a list of (retcode, stdout, stderr) tuples.

◆ running_pids()

def webkitpy.common.system.executive.Executive.running_pids (   self,
  process_name_filter = None 
)

◆ shell_command_for_script()

def webkitpy.common.system.executive.Executive.shell_command_for_script (   script_path,
  fs = None 
)
static

◆ wait_limited()

def webkitpy.common.system.executive.Executive.wait_limited (   self,
  pid,
  limit_in_seconds = None,
  check_frequency_in_seconds = None 
)

◆ wait_newest()

def webkitpy.common.system.executive.Executive.wait_newest (   self,
  process_name_filter = None 
)

Member Data Documentation

◆ pid_to_system_pid

webkitpy.common.system.executive.Executive.pid_to_system_pid

◆ PIPE

webkitpy.common.system.executive.Executive.PIPE = subprocess.PIPE
static

◆ STDOUT

webkitpy.common.system.executive.Executive.STDOUT = subprocess.STDOUT
static

The documentation for this class was generated from the following file: