Module subplotlib::steplibrary::runcmd
source · [−]Expand description
Step library for running subprocesses as part of scenarios
Re-exports
Modules
Check that an executed command returns a specific exit code
Check that an executed command did not succeed
Check that an executed command returns a specific exit code
Check that an executed command succeeded
Ensure the given data file is available as a script in the data dir
Ensure that the base source directory is in the PATH
for subsequent
commands being run.
Run the given command, ensuring it succeeds
Run the given command in the given subpath of the data directory, ensuring that it succeeds.
Check that the stderr of the command contains a given string
Check that the stderr of the command does not contain a given string
Check that the stderr of the command does not match a given regular expression
Check that the stderr of the command matches exactly
Check that the stderr of the command is exactly not a given value
Check that the stderr of the command matches a given regular expression
Check that the stdout of the command contains a given string
Check that the stdout of the command does not contain a given string
Check that the stdout of the command does not match a given regular expression
Check that the stdout of the command matches exactly
Check that the stdout of the command is exactly not a given value
Check that the stdout of the command matches a given regular expression
Run the given command
Run the given command in the given subpath of the data directory
Structs
The Runcmd context gives a step function access to the ability to run subprocesses as part of a scenario. These subprocesses are run with various environment variables set, and we record the stdout/stderr of the most recent-to-run command for testing purposes.