From fad6eb18448736ad1308f622be8e138fcf259288 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Wed, 27 Jan 2016 16:49:30 -0500 Subject: [PATCH] fixed unit test to match new output of become/su --- test/units/playbook/test_play_context.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/units/playbook/test_play_context.py b/test/units/playbook/test_play_context.py index 5434ef3000..cc9441dab8 100644 --- a/test/units/playbook/test_play_context.py +++ b/test/units/playbook/test_play_context.py @@ -149,7 +149,7 @@ class TestPlayContext(unittest.TestCase): play_context.become_method = 'su' cmd = play_context.make_become_cmd(cmd=default_cmd, executable="/bin/bash") - self.assertEqual(cmd, """%s -c '%s %s -c "%s -c '"'"'echo %s; %s'"'"'"'""" % (default_exe, su_exe, play_context.become_user, default_exe, play_context.success_key, default_cmd)) + self.assertEqual(cmd, """%s -c '%s %s -c %s -c '"'"'echo %s; %s'"'"''""" % (default_exe, su_exe, play_context.become_user, default_exe, play_context.success_key, default_cmd)) play_context.become_method = 'pbrun' cmd = play_context.make_become_cmd(cmd=default_cmd, executable="/bin/bash")