summaryrefslogtreecommitdiff
path: root/runcmd.yaml
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2020-05-20 10:14:00 +0300
committerLars Wirzenius <liw@liw.fi>2020-05-20 10:59:54 +0300
commit0a073fa0b2a7e456d3bff9c9bfe930e8b3ee7449 (patch)
treeec50e222e1c9b139d08a0eae6911cbe87e0fb485 /runcmd.yaml
parent6ca305d000360de74e686d801c638086c876d08a (diff)
downloadsubplot-0a073fa0b2a7e456d3bff9c9bfe930e8b3ee7449.tar.gz
refactor: move things from subplot.{py,yaml} to separate files
files.{py,yaml} contain re-usable steps for handling files. runcmd.{py,yaml} contain re-usable steps for running commands and inspecting results.
Diffstat (limited to 'runcmd.yaml')
-rw-r--r--runcmd.yaml14
1 files changed, 13 insertions, 1 deletions
diff --git a/runcmd.yaml b/runcmd.yaml
index fe51488..02e5ee1 100644
--- a/runcmd.yaml
+++ b/runcmd.yaml
@@ -1 +1,13 @@
-[]
+- then: exit code is non-zero
+ function: exit_code_nonzero
+
+- then: output matches /(?P<pattern>.+)/
+ function: stdout_contains
+ regex: true
+
+- then: stderr matches /(?P<pattern>.+)/
+ function: stderr_contains
+ regex: true
+
+- then: program finished successfully
+ function: exit_code_zero