From 8ff0c0f25348e13cced0f54292d65a21253b6168 Mon Sep 17 00:00:00 2001 From: James Cammarata Date: Wed, 4 Jun 2014 13:02:14 -0500 Subject: [PATCH] Tweaking make_su_cmd test Fixes #7652 --- test/units/TestUtils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/units/TestUtils.py b/test/units/TestUtils.py index 241f9cd7e1c..f95955d1b21 100644 --- a/test/units/TestUtils.py +++ b/test/units/TestUtils.py @@ -512,7 +512,7 @@ class TestUtils(unittest.TestCase): cmd = ansible.utils.make_su_cmd('root', '/bin/sh', '/bin/ls') self.assertTrue(isinstance(cmd, tuple)) self.assertEqual(len(cmd), 3) - self.assertTrue('root -c "/bin/sh' in cmd[0]) + self.assertTrue('root -c "/bin/sh' in cmd[0] or ' root -c /bin/sh' in cmd[0]) self.assertTrue(re.compile(cmd[1])) self.assertTrue('echo SUDO-SUCCESS-' in cmd[0] and cmd[2].startswith('SUDO-SUCCESS-'))