diff options
author | Lars Wirzenius <liw@liw.fi> | 2020-09-27 12:34:59 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2020-09-28 10:24:14 +0300 |
commit | cbd610b46aa5ade39253360e5ee4db06020de87b (patch) | |
tree | 53b2ee9df27da7fc42eea751dab23962971884d5 /subplot.md | |
parent | 6a19cfed49ecd556d24674811fd9e95793f7e262 (diff) | |
download | subplot-cbd610b46aa5ade39253360e5ee4db06020de87b.tar.gz |
refactor(subplot.{md,yaml}): rename step step to check for failure
The old step "then exit code is non-zero" comes originally from
runcmd.yaml. For lib/runcmd.yaml it has been replaced with "then
command fails".
Change all uses of the old wording to the new one. Don't use
lib/runcmd.yaml yet, but keep the binding subplot.yaml to bind the new
wording to the function from lib/runcmd.py (which it did before
already, so no change).
Diffstat (limited to 'subplot.md')
-rw-r--r-- | subplot.md | 28 |
1 files changed, 14 insertions, 14 deletions
@@ -767,7 +767,7 @@ and file f.py when I run sp-docgen continuationmisuse.md -o foo.pdf then file foo.pdf exists when I try to run sp-codegen --run continuationmisuse.md -o test.py -then exit code is non-zero +then command fails ~~~ ~~~{#continuationmisuse.md .file .markdown .numberLines} @@ -929,7 +929,7 @@ then scenario "Cleanup" was run and step "given foo" was run, and then step "given bar" and cleanup for "given bar" was run, and then for "given foo" and cleanup for "given failure" was not run -and exit code is non-zero +and command fails ~~~ ~~~~~{#cleanup-fail-python.md .file .markdown .numberLines} @@ -994,7 +994,7 @@ then scenario "Cleanup" was run and step "given foo" was run, and then step "given bar" and cleanup for "given bar" was run, and then for "given foo" and cleanup for "given failure" was not run -and exit code is non-zero +and command fails ~~~ ~~~~~{#cleanup-fail-bash.md .file .markdown .numberLines} @@ -1071,7 +1071,7 @@ given file confusedpattern.md and file confusedpattern.yaml and file capture.py when I try to run sp-codegen --run confusedpattern.md -o test.py -then exit code is non-zero +then command fails and stderr matches /simple pattern contains regex/ ~~~ @@ -1372,7 +1372,7 @@ ikiwiki, and ikiwiki has a different way of specifying page titles. ~~~scenario given file notitle.md when I try to run sp-docgen notitle.md -o foo.md -then exit code is non-zero +then command fails ~~~ ~~~{#notitle.md .file .markdown .numberLines} @@ -1398,7 +1398,7 @@ then bar was done ~~~scenario given file notitle.md when I try to run sp-codegen --run notitle.md -o test.py -then exit code is non-zero +then command fails ~~~ @@ -1617,7 +1617,7 @@ missing file. ~~~scenario given file missing-binding.md when I try to run sp-docgen missing-binding.md -o foo.htmlh -then exit code is non-zero +then command fails and stderr matches /: missing-binding.yaml:/ ~~~ @@ -1637,7 +1637,7 @@ missing file. given file missing-functions.md and file b.yaml when I try to run sp-codegen --run missing-functions.md -o foo.py -then exit code is non-zero +then command fails and stderr matches /: missing-functions.py:/ ~~~ @@ -1921,7 +1921,7 @@ This file does not end in a newline. ~~~scenario given file onefiletwice.md when I try to run sp-docgen onefiletwice.md -o onefiletwice.html -then exit code is non-zero +then command fails and file onefiletwice.html does not exist ~~~ @@ -1945,7 +1945,7 @@ This is another embedded file, and has the same name. ~~~scenario given file casediff.md when I try to run sp-docgen casediff.md -o casediff.html -then exit code is non-zero +then command fails and file casediff.html does not exist ~~~ @@ -2001,7 +2001,7 @@ then nothing works given file nobinding.md and file badbindings.yaml when I try to run sp-codegen --run nobinding.md -o test.py -then exit code is non-zero +then command fails ``` ### Steps which do not case-sensitively match sensitive bindings do not work @@ -2023,7 +2023,7 @@ given a capitalised binding given file casemismatch.md and file badbindings.yaml when I try to run sp-codegen --run casemismatch.md -o test.py -then exit code is non-zero +then command fails ``` ### Steps which match more than one binding do not work @@ -2045,7 +2045,7 @@ given a binding given file twobindings.md and file badbindings.yaml when I try to run sp-codegen --run twobindings.md -o test.py -then exit code is non-zero +then command fails ``` @@ -2286,7 +2286,7 @@ given file unknown-class-name.md and file known-class-name.md and file b.yaml when I try to run sp-docgen unknown-class-name.md -o unknown-class-name.html -then exit code is non-zero +then command fails and file unknown-class-name.html does not exist and stderr matches /Unknown classes found in the document: foobar/ when I run sp-docgen known-class-name.md -o known-class-name.html |