1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Fix TestInventory class by explicitly using /bin/bash

This commit is contained in:
Jascha Geerds 2013-10-15 21:34:36 +02:00
parent 7061c99049
commit 76ed19d279

View file

@ -41,7 +41,9 @@ class TestInventory(unittest.TestCase):
os.chdir(self.cwd)
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):
self.clean_file()