Recent BSD su work introduced a failing test. Removed leading space from the assertion that seems to be the culprit.

pull/7563/head
Timothy Appnel 11 years ago
parent e43ae3c0f7
commit 754d635aca

@ -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])
self.assertTrue(re.compile(cmd[1]))
self.assertTrue('echo SUDO-SUCCESS-' in cmd[0] and cmd[2].startswith('SUDO-SUCCESS-'))

Loading…
Cancel
Save