From 76ed19d27984454ce5b4353bcdca8afbc98e90bb Mon Sep 17 00:00:00 2001
From: Jascha Geerds <jg@ekby.de>
Date: Tue, 15 Oct 2013 21:34:36 +0200
Subject: [PATCH] Fix TestInventory class by explicitly using /bin/bash

---
 test/TestCallback.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/test/TestCallback.py b/test/TestCallback.py
index 94a415e8b4..faf5e0fe4e 100644
--- a/test/TestCallback.py
+++ b/test/TestCallback.py
@@ -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()