Compare commits
4 commits
d2f76a2593
...
9593510bd4
Author | SHA1 | Date | |
---|---|---|---|
|
9593510bd4 | ||
|
5d34d005e8 | ||
|
76ccc53eee | ||
|
1971ae9f51 |
3 changed files with 7 additions and 5 deletions
|
@ -42,10 +42,11 @@ class Shell(dotbot.Plugin):
|
||||||
else:
|
else:
|
||||||
cmd = item
|
cmd = item
|
||||||
msg = None
|
msg = None
|
||||||
if msg is None:
|
if quiet:
|
||||||
|
if msg is not None:
|
||||||
|
self._log.lowinfo("%s" % msg)
|
||||||
|
elif msg is None:
|
||||||
self._log.lowinfo(cmd)
|
self._log.lowinfo(cmd)
|
||||||
elif quiet:
|
|
||||||
self._log.lowinfo("%s" % msg)
|
|
||||||
else:
|
else:
|
||||||
self._log.lowinfo("%s [%s]" % (msg, cmd))
|
self._log.lowinfo("%s [%s]" % (msg, cmd))
|
||||||
stdout = options.get("stdout", stdout)
|
stdout = options.get("stdout", stdout)
|
||||||
|
|
|
@ -20,9 +20,9 @@ test_expect_success 'run 2' '
|
||||||
EOF
|
EOF
|
||||||
'
|
'
|
||||||
|
|
||||||
# when no description, expect to see command
|
# when no description, expect no output
|
||||||
test_expect_success 'run 3' '
|
test_expect_success 'run 3' '
|
||||||
(run_dotbot | grep "echo banana") <<EOF
|
(run_dotbot | (! grep "echo banana")) <<EOF
|
||||||
- shell:
|
- shell:
|
||||||
- command: echo banana
|
- command: echo banana
|
||||||
quiet: true
|
quiet: true
|
||||||
|
|
|
@ -2,6 +2,7 @@ test_description='install shim works'
|
||||||
. '../test-lib.bash'
|
. '../test-lib.bash'
|
||||||
|
|
||||||
test_expect_success 'setup' '
|
test_expect_success 'setup' '
|
||||||
|
git config --global protocol.file.allow always
|
||||||
cd ${DOTFILES}
|
cd ${DOTFILES}
|
||||||
git init
|
git init
|
||||||
git submodule add ${BASEDIR} dotbot
|
git submodule add ${BASEDIR} dotbot
|
||||||
|
|
Loading…
Reference in a new issue