Public Member Functions | Public Attributes | Private Attributes | List of all members
gtest_test_utils.Subprocess Class Reference

Public Member Functions

def __init__ (self, command, working_dir=None, capture_stderr=True, env=None)
 
def __init__ (self, command, working_dir=None, capture_stderr=True, env=None)
 
def __init__ (self, command, working_dir=None, capture_stderr=True, env=None)
 
def __init__ (self, command, working_dir=None, capture_stderr=True, env=None)
 
def __init__ (self, command, working_dir=None, capture_stderr=True, env=None)
 

Public Attributes

 exit_code
 
 exited
 
 output
 
 signal
 
 terminated_by_signal
 

Private Attributes

 _return_code
 

Detailed Description

Definition at line 202 of file bloaty/third_party/googletest/googletest/test/gtest_test_utils.py.

Constructor & Destructor Documentation

◆ __init__() [1/5]

def gtest_test_utils.Subprocess.__init__ (   self,
  command,
  working_dir = None,
  capture_stderr = True,
  env = None 
)
Changes into a specified directory, if provided, and executes a command.

Restores the old directory afterwards.

Args:
  command:        The command to run, in the form of sys.argv.
  working_dir:    The directory to change into.
  capture_stderr: Determines whether to capture stderr in the output member
              or to discard it.
  env:            Dictionary with environment to pass to the subprocess.

Returns:
  An object that represents outcome of the executed process. It has the
  following attributes:
terminated_by_signal   True if the child process has been terminated
                       by a signal.
signal                 Sygnal that terminated the child process.
exited                 True if the child process exited normally.
exit_code              The code with which the child process exited.
output                 Child process's stdout and stderr output
                       combined in a string.

Definition at line 203 of file bloaty/third_party/googletest/googletest/test/gtest_test_utils.py.

◆ __init__() [2/5]

def gtest_test_utils.Subprocess.__init__ (   self,
  command,
  working_dir = None,
  capture_stderr = True,
  env = None 
)
Changes into a specified directory, if provided, and executes a command.

Restores the old directory afterwards.

Args:
  command:        The command to run, in the form of sys.argv.
  working_dir:    The directory to change into.
  capture_stderr: Determines whether to capture stderr in the output member
              or to discard it.
  env:            Dictionary with environment to pass to the subprocess.

Returns:
  An object that represents outcome of the executed process. It has the
  following attributes:
terminated_by_signal   True iff the child process has been terminated
                       by a signal.
signal                 Sygnal that terminated the child process.
exited                 True iff the child process exited normally.
exit_code              The code with which the child process exited.
output                 Child process's stdout and stderr output
                       combined in a string.

Definition at line 203 of file bloaty/third_party/protobuf/third_party/googletest/googletest/test/gtest_test_utils.py.

◆ __init__() [3/5]

def gtest_test_utils.Subprocess.__init__ (   self,
  command,
  working_dir = None,
  capture_stderr = True,
  env = None 
)
Changes into a specified directory, if provided, and executes a command.

Restores the old directory afterwards.

Args:
  command:        The command to run, in the form of sys.argv.
  working_dir:    The directory to change into.
  capture_stderr: Determines whether to capture stderr in the output member
              or to discard it.
  env:            Dictionary with environment to pass to the subprocess.

Returns:
  An object that represents outcome of the executed process. It has the
  following attributes:
terminated_by_signal   True if and only if the child process has been
                       terminated by a signal.
exited                 True if and only if the child process exited
                       normally.
exit_code              The code with which the child process exited.
output                 Child process's stdout and stderr output
                       combined in a string.

Definition at line 203 of file boringssl-with-bazel/src/third_party/googletest/test/gtest_test_utils.py.

◆ __init__() [4/5]

def gtest_test_utils.Subprocess.__init__ (   self,
  command,
  working_dir = None,
  capture_stderr = True,
  env = None 
)
Changes into a specified directory, if provided, and executes a command.

Restores the old directory afterwards.

Args:
  command:        The command to run, in the form of sys.argv.
  working_dir:    The directory to change into.
  capture_stderr: Determines whether to capture stderr in the output member
              or to discard it.
  env:            Dictionary with environment to pass to the subprocess.

Returns:
  An object that represents outcome of the executed process. It has the
  following attributes:
terminated_by_signal   True if and only if the child process has been
                       terminated by a signal.
exited                 True if and only if the child process exited
                       normally.
exit_code              The code with which the child process exited.
output                 Child process's stdout and stderr output
                       combined in a string.

Definition at line 197 of file googletest/googletest/test/gtest_test_utils.py.

◆ __init__() [5/5]

def gtest_test_utils.Subprocess.__init__ (   self,
  command,
  working_dir = None,
  capture_stderr = True,
  env = None 
)
Changes into a specified directory, if provided, and executes a command.

Restores the old directory afterwards.

Args:
  command:        The command to run, in the form of sys.argv.
  working_dir:    The directory to change into.
  capture_stderr: Determines whether to capture stderr in the output member
              or to discard it.
  env:            Dictionary with environment to pass to the subprocess.

Returns:
  An object that represents outcome of the executed process. It has the
  following attributes:
terminated_by_signal   True iff the child process has been terminated
                       by a signal.
signal                 Sygnal that terminated the child process.
exited                 True iff the child process exited normally.
exit_code              The code with which the child process exited.
output                 Child process's stdout and stderr output
                       combined in a string.

Definition at line 203 of file protobuf/third_party/googletest/googletest/test/gtest_test_utils.py.

Member Data Documentation

◆ _return_code

gtest_test_utils.Subprocess._return_code
private

◆ exit_code

gtest_test_utils.Subprocess.exit_code

◆ exited

gtest_test_utils.Subprocess.exited

◆ output

gtest_test_utils.Subprocess.output

◆ signal

gtest_test_utils.Subprocess.signal

◆ terminated_by_signal

gtest_test_utils.Subprocess.terminated_by_signal

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


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:40