Add test for `exec` command.

This commit is contained in:
Alberto Gonzalez 2020-03-16 06:44:21 +00:00
parent 8ba49a8462
commit a09b260c01
No known key found for this signature in database
GPG Key ID: 8395A8BA109708B2
1 changed files with 6 additions and 0 deletions

6
tests/various/exec.ys Normal file
View File

@ -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"