diff options
Diffstat (limited to 'share/python/lib/runcmd.md')
-rw-r--r-- | share/python/lib/runcmd.md | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/share/python/lib/runcmd.md b/share/python/lib/runcmd.md index 4615f69..5f99b2a 100644 --- a/share/python/lib/runcmd.md +++ b/share/python/lib/runcmd.md @@ -37,6 +37,16 @@ then exit code is 0 and command is successful ~~~ +## Successful execution in a sub-directory + +~~~scenario +given a directory xyzzy +when I run, in xyzzy, /bin/pwd +then exit code is 0 +then command is successful +then stdout contains "/xyzzy" +~~~ + ## Failed execution ~~~scenario @@ -45,6 +55,15 @@ then exit code is not 0 and command fails ~~~ +## Failed execution in a sub-directory + +~~~scenario +given a directory xyzzy +when I try to run, in xyzzy, /bin/false +then exit code is not 0 +and command fails +~~~ + # Check we can prepend to $PATH This scenario verifies that we can add a directory to the beginning of @@ -187,6 +206,7 @@ template: python bindings: - runcmd.yaml - runcmd_test.yaml +- files.yaml functions: - runcmd.py - runcmd_test.py |