summaryrefslogtreecommitdiff
path: root/test/tests/shell-compact-stdout.bash
diff options
context:
space:
mode:
Diffstat (limited to 'test/tests/shell-compact-stdout.bash')
-rw-r--r--test/tests/shell-compact-stdout.bash22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/tests/shell-compact-stdout.bash b/test/tests/shell-compact-stdout.bash
new file mode 100644
index 0000000..dc55d52
--- /dev/null
+++ b/test/tests/shell-compact-stdout.bash
@@ -0,0 +1,22 @@
+test_description='shell command stdout works in compact form'
+. '../test-lib.bash'
+
+test_expect_success 'run' '
+(run_dotbot | grep "^apple") <<EOF
+- defaults:
+ shell:
+ stdout: true
+- shell:
+ - echo apple
+EOF
+'
+
+test_expect_success 'run 2' '
+(run_dotbot | grep "^apple") <<EOF
+- defaults:
+ shell:
+ stdout: true
+- shell:
+ - [echo apple, "echoing message"]
+EOF
+'