Check a shell script's output and exit code.
A ShellScriptTest runs the shell script provided and compares its
standard output, standard error, and exit code with expected values.
The shell script may be provided with command-line arguments and/or
standard input.
QMTest determines which shell to use by the following method:
If the context contains the property
ShellScriptTest.script_shell , its value is split into an
argument list and used.
Otherwise, if the .qmrc configuration file contains the common
property script_shell , its value is split into an argument
list and used.
Otherwise, the default shell for the target system is used.
Methods
|
|
Run
|
|
Run
|
Run (
self,
context,
result,
)
Run the test.
-
context
- A
Context giving run-time parameters to the
test.
-
result
- A
Result object. The outcome will be
Result.PASS when this method is called. The result may be
modified by this method to indicate outcomes other than
Result.PASS or to add annotations.
|
|