2018-11-21 19:48:24 -05:00
|
|
|
test_description='shell command can be suppressed in output'
|
|
|
|
. '../test-lib.bash'
|
|
|
|
|
|
|
|
# when not quiet, expect to see command that was run
|
|
|
|
test_expect_success 'run' '
|
|
|
|
(run_dotbot | grep "echo banana") <<EOF
|
|
|
|
- shell:
|
|
|
|
- command: echo banana
|
|
|
|
description: echoing a thing...
|
|
|
|
EOF
|
|
|
|
'
|
|
|
|
|
|
|
|
# when quiet, expect command to be suppressed
|
|
|
|
test_expect_success 'run 2' '
|
|
|
|
(run_dotbot | (! grep "echo banana")) <<EOF
|
|
|
|
- shell:
|
|
|
|
- command: echo banana
|
|
|
|
description: echoing a thing...
|
|
|
|
quiet: true
|
|
|
|
EOF
|
|
|
|
'
|
|
|
|
|
2022-11-17 13:26:32 -05:00
|
|
|
# when no description, expect no output
|
2018-11-21 19:48:24 -05:00
|
|
|
test_expect_success 'run 3' '
|
2022-11-17 13:26:32 -05:00
|
|
|
(run_dotbot | (! grep "echo banana")) <<EOF
|
2018-11-21 19:48:24 -05:00
|
|
|
- shell:
|
|
|
|
- command: echo banana
|
|
|
|
quiet: true
|
|
|
|
EOF
|
|
|
|
'
|