summaryrefslogtreecommitdiff
path: root/test/tests/shell-compact-stdout.bash
blob: dc55d52457da674976825dcddc345277858a9ec8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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
'