summaryrefslogtreecommitdiff
path: root/subplot.yaml
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2020-09-27 12:52:04 +0300
committerLars Wirzenius <liw@liw.fi>2020-09-28 10:24:14 +0300
commit19f27e688fcee990df0f29c8d9e073b6037dd445 (patch)
tree3fae194b3c05e82f7a4cef861f84aff99b3d66d2 /subplot.yaml
parent0763dc1425e4c7a9c9257c5806a4f120b4c06a64 (diff)
downloadsubplot-19f27e688fcee990df0f29c8d9e073b6037dd445.tar.gz
refactor(subplot.{md,yaml}): rename steps to check output
The old steps "then output matches /.../" and "stderr matches /.../" come originally from runcmd.yaml. For lib/runcmd.yaml they have been replaced with 'then stdout contains "..."' and 'stderr contains "..."'. 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.yaml')
-rw-r--r--subplot.yaml4
1 files changed, 2 insertions, 2 deletions
diff --git a/subplot.yaml b/subplot.yaml
index eec291b..d2edbce 100644
--- a/subplot.yaml
+++ b/subplot.yaml
@@ -77,10 +77,10 @@
- then: command fails
function: runcmd_exit_code_is_nonzero
-- then: output matches /(?P<text>.+)/
+- then: stdout contains "(?P<text>.+)"
function: runcmd_stdout_contains
regex: true
-- then: stderr matches /(?P<text>.+)/
+- then: stderr contains "(?P<text>.+)"
function: runcmd_stderr_contains
regex: true