test/TestRunner.py now executes false with no directory prefix

as it is /bin/false on many systems but /usr/bin/false on OS X
test/playbook1.yml now just does command true, rather than command /bin/true,
again so that it works on OS X

Changed from using which false to just using command false to
make it simpler and also match how playbook1.yml works
This commit is contained in:
willthames 2012-07-30 11:59:29 +10:00 committed by Will Thames
parent f5e08158ca
commit 1bcba4f4a2
2 changed files with 3 additions and 3 deletions

View file

@ -128,7 +128,7 @@ class TestRunner(unittest.TestCase):
assert result['stdout'] == 'hi'
assert result['stderr'] == ''
result = self._run('command', [ "/bin/false" ])
result = self._run('command', [ "false" ])
assert result['rc'] == 1
assert 'failed' not in result

View file

@ -18,10 +18,10 @@
tasks:
- name: test basic success command
action: command /bin/true
action: command true
- name: test basic success command 2
action: command /bin/true
action: command true
- name: test basic shell, plus two ways to dereference a variable
action: shell echo $HOME $port {{ port }}