|
proxygen
|
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) |
Public Attributes | |
| output | |
| terminated_by_signal | |
| exited | |
| signal | |
| exit_code | |
Private Attributes | |
| _return_code | |
Definition at line 207 of file gtest_test_utils.py.
| 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 208 of file gtest_test_utils.py.
Referenced by gtest_test_utils.Subprocess.__init__().
| 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 208 of file gtest_test_utils.py.
References gtest_test_utils.Subprocess.__init__(), gtest_test_utils._ParseAndStripGTestFlags(), gtest_test_utils.Subprocess._return_code, gtest_test_utils.Subprocess.exit_code, gtest_test_utils.Subprocess.exited, gtest_test_utils.Main(), gtest_test_utils.Subprocess.output, gtest_test_utils.Subprocess.signal, and gtest_test_utils.Subprocess.terminated_by_signal.
| 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 208 of file gtest_test_utils.py.
References gtest_test_utils.Subprocess.__init__(), gtest_test_utils._ParseAndStripGTestFlags(), gtest_test_utils.Subprocess._return_code, gtest_test_utils.Subprocess.exit_code, gtest_test_utils.Subprocess.exited, gtest_test_utils.Main(), gtest_test_utils.Subprocess.output, gtest_test_utils.Subprocess.signal, and gtest_test_utils.Subprocess.terminated_by_signal.
|
private |
Definition at line 251 of file gtest_test_utils.py.
Referenced by gtest_test_utils.Subprocess.__init__().
| gtest_test_utils.Subprocess.exit_code |
Definition at line 303 of file gtest_test_utils.py.
Referenced by gtest_test_utils.Subprocess.__init__().
| gtest_test_utils.Subprocess.exited |
Definition at line 298 of file gtest_test_utils.py.
Referenced by gtest_test_utils.Subprocess.__init__().
| gtest_test_utils.Subprocess.output |
Definition at line 250 of file gtest_test_utils.py.
Referenced by gtest_test_utils.Subprocess.__init__().
| gtest_test_utils.Subprocess.signal |
Definition at line 299 of file gtest_test_utils.py.
Referenced by gtest_test_utils.Subprocess.__init__().
| gtest_test_utils.Subprocess.terminated_by_signal |
Definition at line 297 of file gtest_test_utils.py.
Referenced by gtest_test_utils.Subprocess.__init__().