diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2021-05-19 23:15:22 +0100 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2021-05-19 23:15:22 +0100 |
commit | b81da10ff03b4447fdabc140bac2a7f4cb80af91 (patch) | |
tree | 46aed3e48ecc6bb4a3fdb7d6244ccfc5df371356 /subplotlib | |
parent | cc4da2237f5fab45ac22563f50a14f7861212693 (diff) | |
download | subplot-b81da10ff03b4447fdabc140bac2a7f4cb80af91.tar.gz |
subplotlib: Update runcmd.md test to use new bindings
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
Diffstat (limited to 'subplotlib')
-rw-r--r-- | subplotlib/runcmd.md | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/subplotlib/runcmd.md b/subplotlib/runcmd.md index 02b6540..83ba5cb 100644 --- a/subplotlib/runcmd.md +++ b/subplotlib/runcmd.md @@ -4,6 +4,7 @@ author: The Subplot project template: rust bindings: - lib/runcmd.yaml + - lib/files.yaml --- # Introduction @@ -44,6 +45,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 @@ -52,6 +63,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 output has what we want These scenarios verify that stdout or stderr do have something we want |