Merge pull request #4530 from geerds/feature/use-bash-executable-in-subprocess-call
Fix TestInventory class by explicitly using /bin/bash
This commit is contained in:
commit
afa781d628
1 changed files with 3 additions and 1 deletions
|
@ -41,7 +41,9 @@ class TestInventory(unittest.TestCase):
|
||||||
os.chdir(self.cwd)
|
os.chdir(self.cwd)
|
||||||
|
|
||||||
def run_ansible_playbook(self):
|
def run_ansible_playbook(self):
|
||||||
subprocess.call('source ../../hacking/env-setup 2>&1 >/dev/null; ansible-playbook -i "127.0.0.1," test_playbook.yml 2>&1 >/dev/null', shell=True)
|
subprocess.call(('source ../../hacking/env-setup 2>&1 >/dev/null;'
|
||||||
|
'ansible-playbook -i "127.0.0.1," test_playbook.yml 2>&1 >/dev/null'),
|
||||||
|
shell=True, executable='/bin/bash')
|
||||||
|
|
||||||
def test_callback(self):
|
def test_callback(self):
|
||||||
self.clean_file()
|
self.clean_file()
|
||||||
|
|
Loading…
Reference in a new issue