parent
0b01d56d81
commit
f1e8297255
@ -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 |
||||
' |
@ -0,0 +1,14 @@ |
||||
test_description='shell command can override default' |
||||
. '../test-lib.bash' |
||||
|
||||
test_expect_success 'run' ' |
||||
(run_dotbot | (! grep "^apple")) <<EOF |
||||
- defaults: |
||||
shell: |
||||
stdout: true |
||||
- shell: |
||||
- |
||||
command: echo apple |
||||
stdout: false |
||||
EOF |
||||
' |
Loading…
Reference in new issue