testshift.node.command_result

Module Contents

class testshift.node.command_result.CommandResult(args, return_code, stdout=None, stderr=None)

Bases: object

CommandResult wraps the subprocess.run() returned value.

Parameters
  • args (str) – The command that has been executed

  • return_code (int) – The command exit code

  • stdout (str) – The command output, if any

  • stderr (str) – The command errors, if any

args

The command that has been executed

Type

str

return_code

The command exit code

Type

int

stdout

The command output, if any

Type

str

stderr

The command errors, if any

Type

str