From a53e77f157915a0ca199e65b27d049bfa7b6ae61 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sat, 1 Jun 2019 21:52:44 +0300 Subject: Add: functions to call for echo steps --- echo.yaml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'echo.yaml') diff --git a/echo.yaml b/echo.yaml index 773c192..521ca25 100644 --- a/echo.yaml +++ b/echo.yaml @@ -1,4 +1,11 @@ - when: user runs echo without arguments -- then: exit code is 0 + function: run_echo_without_args + + - then: exit code is (?P\d+) + function: exit_code_is_zero + - then: standard output contains a newline + function: stdout_is_a_newline + - then: standard error is empty + function: stderr_is_empty -- cgit v1.2.1