You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
665 B
30 lines
665 B
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
|
|
'
|
|
|
|
# when no description, expect to see command
|
|
test_expect_success 'run 3' '
|
|
(run_dotbot | grep "echo banana") <<EOF
|
|
- shell:
|
|
- command: echo banana
|
|
quiet: true
|
|
EOF
|
|
'
|
|
|