class PosixProcessBase: (source)
Known subclasses: twisted.test.test_process.PosixProcessPTYTests
, twisted.test.test_process.PosixProcessTests
Test running processes.
Method | get |
Return the path of the shell command named commandName, looking at common locations. |
Method | test_abnormal |
When a process terminates with a system exit code set to 1, processEnded is called with a error.ProcessTerminated error, the exitCode attribute reflecting the system exit code. |
Method | test_child |
The disposition of signals which are ignored in the parent process is reset to the default behavior for the child process. |
Method | test_error |
The handler which reaps a process is removed when the process is reaped, even if the protocol's processEnded method raises an exception. |
Method | test_execution |
Raise an error during execvpe to check error management. |
Method | test_normal |
Undocumented |
Method | test_signal |
Sending the SIGHUP signal to a running process interrupts it, and processEnded is called with a error.ProcessTerminated instance with the exitCode set to None and the signal attribute set to signal.SIGHUP... |
Method | test_signal |
Sending the SIGINT signal to a running process interrupts it, and processEnded is called with a error.ProcessTerminated instance with the exitCode set to None and the signal attribute set to signal.SIGINT... |
Method | test_signal |
Sending the SIGKILL signal to a running process interrupts it, and processEnded is called with a error.ProcessTerminated instance with the exitCode set to None and the signal attribute set to signal.SIGKILL... |
Method | test_signal |
Sending the SIGTERM signal to a running process interrupts it, and processEnded is called with a error.ProcessTerminated instance with the exitCode set to None and the signal attribute set to signal.SIGTERM... |
Class Variable | use |
Undocumented |
Method | _test |
Undocumented |
When a process terminates with a system exit code set to 1, processEnded is called with a error.ProcessTerminated
error, the exitCode attribute reflecting the system exit code.
The disposition of signals which are ignored in the parent process is reset to the default behavior for the child process.
The handler which reaps a process is removed when the process is reaped, even if the protocol's processEnded method raises an exception.
def test_executionError(self): (source) ¶
Raise an error during execvpe to check error management.
Sending the SIGHUP signal to a running process interrupts it, and processEnded is called with a error.ProcessTerminated
instance with the exitCode set to None
and the signal attribute set to signal.SIGHUP. os.WTERMSIG can also be used on the status attribute to extract the signal value.
Sending the SIGINT signal to a running process interrupts it, and processEnded is called with a error.ProcessTerminated
instance with the exitCode set to None
and the signal attribute set to signal.SIGINT. os.WTERMSIG can also be used on the status attribute to extract the signal value.
Sending the SIGKILL signal to a running process interrupts it, and processEnded is called with a error.ProcessTerminated
instance with the exitCode set to None
and the signal attribute set to signal.SIGKILL. os.WTERMSIG can also be used on the status attribute to extract the signal value.
Sending the SIGTERM signal to a running process interrupts it, and processEnded is called with a error.ProcessTerminated
instance with the exitCode set to None
and the signal attribute set to signal.SIGTERM. os.WTERMSIG can also be used on the status attribute to extract the signal value.