Commit afa781d6 by Michael DeHaan

Merge pull request #4530 from geerds/feature/use-bash-executable-in-subprocess-call

Fix TestInventory class by explicitly using /bin/bash
parents 00f3ec64 76ed19d2
......@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment