class documentation

class RunResult(object):

View In Hierarchy

Holds the result of running external programs.

Method __init__ Undocumented
Class Variable __slots__ Undocumented
Class Variable output Undocumented
Instance Variable cmd Undocumented
Instance Variable exit_code the exit code of the program, or None (if the program didn't exit())
Instance Variable fail_reason a string detailing the termination reason
Instance Variable failed True in case the program was terminated by a signal or exited with a non-zero exit code
Instance Variable failed_by_timeout True in case the program was terminated by timeout
Instance Variable signal the signal that caused the program to finish, or None (if the program wasn't terminated by a signal)
Instance Variable stderr the standard error of the program
Instance Variable stdout the standard output of the program
Method _GetOutput Returns the combined stdout and stderr for easier usage.
def __init__(self, exit_code, signal_, stdout, stderr, cmd, timeout_action, timeout):

Undocumented

__slots__: list[str] =

Undocumented

output =

Undocumented

cmd =

Undocumented

exit_code: int =

the exit code of the program, or None (if the program didn't exit())

fail_reason =

a string detailing the termination reason

failed: boolean =

True in case the program was terminated by a signal or exited with a non-zero exit code

failed_by_timeout: boolean =

True in case the program was terminated by timeout

signal: int or None =

the signal that caused the program to finish, or None (if the program wasn't terminated by a signal)

stderr: str =

the standard error of the program

stdout: str =

the standard output of the program

def _GetOutput(self):

Returns the combined stdout and stderr for easier usage.