From a09b260c015457ad9a9cadbe0931b411d748420d Mon Sep 17 00:00:00 2001 From: Alberto Gonzalez Date: Mon, 16 Mar 2020 06:44:21 +0000 Subject: [PATCH] Add test for `exec` command. --- tests/various/exec.ys | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 tests/various/exec.ys diff --git a/tests/various/exec.ys b/tests/various/exec.ys new file mode 100644 index 000000000..0eec00719 --- /dev/null +++ b/tests/various/exec.ys @@ -0,0 +1,6 @@ +exec -expect-return 0 -- exit 0 +exec -expect-return 27 -- exit 27 +exec -expect-stdout nana -expect-stdout api -not-expect-stdout giraffe -- echo "bananapie" + +logger -expect error "stdout did have a line" 1 +exec -not-expect-stdout giraffe -- echo "giraffe" -- 2.30.2