summaryrefslogtreecommitdiff
path: root/tests/python/runcmd.md
diff options
context:
space:
mode:
Diffstat (limited to 'tests/python/runcmd.md')
-rw-r--r--tests/python/runcmd.md24
1 files changed, 12 insertions, 12 deletions
diff --git a/tests/python/runcmd.md b/tests/python/runcmd.md
index 68465a8..7b88dd3 100644
--- a/tests/python/runcmd.md
+++ b/tests/python/runcmd.md
@@ -14,8 +14,8 @@ they're verified. It uses the steps and functions from the
command, then examine the exit code, standard output (stdout for
short), or standard error output (stderr) of the command.
-The scenarios use the Unix commands `/bin/true` and `/bin/false` to
-generate exit codes, and `/bin/echo` to produce stdout. To generate
+The scenarios use the Unix commands `true` and `false` to
+generate exit codes, and `echo` to produce stdout. To generate
stderr, they use the little helper script below.
~~~{#err.sh .file .sh .numberLines}
@@ -32,7 +32,7 @@ variations.
## Successful execution
~~~scenario
-when I run /bin/true
+when I run true
then exit code is 0
and command is successful
~~~
@@ -41,7 +41,7 @@ and command is successful
~~~scenario
given a directory xyzzy
-when I run, in xyzzy, /bin/pwd
+when I run, in xyzzy, pwd
then exit code is 0
then command is successful
then stdout contains "/xyzzy"
@@ -50,7 +50,7 @@ then stdout contains "/xyzzy"
## Failed execution
~~~scenario
-when I try to run /bin/false
+when I try to run false
then exit code is not 0
and command fails
~~~
@@ -59,7 +59,7 @@ and command fails
~~~scenario
given a directory xyzzy
-when I try to run, in xyzzy, /bin/false
+when I try to run, in xyzzy, false
then exit code is not 0
and command fails
~~~
@@ -97,7 +97,7 @@ to the reader what's inside. Also, C-style string escapes are
understood.
~~~scenario
-when I run /bin/echo hello, world
+when I run echo hello, world
then stdout is exactly "hello, world\n"
~~~
@@ -115,7 +115,7 @@ Exact string comparisons are not always enough, so we can verify a
sub-string is in output.
~~~scenario
-when I run /bin/echo hello, world
+when I run echo hello, world
then stdout contains "world\n"
and exit code is 0
~~~
@@ -135,7 +135,7 @@ regular expression. Note that the regular expression is not delimited
and does not get any C-style string escaped decoded.
~~~scenario
-when I run /bin/echo hello, world
+when I run echo hello, world
then stdout matches regex world$
~~~
@@ -155,7 +155,7 @@ have something we want to avoid.
## Check stdout is not exactly something
~~~scenario
-when I run /bin/echo hi
+when I run echo hi
then stdout isn't exactly "hello, world\n"
~~~
@@ -170,7 +170,7 @@ then stderr isn't exactly "hello, world\n"
## Check stdout doesn't contain sub-string
~~~scenario
-when I run /bin/echo hi
+when I run echo hi
then stdout doesn't contain "world"
~~~
@@ -185,7 +185,7 @@ then stderr doesn't contain "world"
## Check stdout doesn't match regular expression
~~~scenario
-when I run /bin/echo hi
+when I run echo hi
then stdout doesn't match regex world$
~~~