From db3d2e1042c2ac60a899ccc745f579c364ff578a Mon Sep 17 00:00:00 2001 From: James Tanner Date: Tue, 18 Mar 2014 09:03:55 -0400 Subject: [PATCH] Fixes #6542 rewrite test string for osx compatibility --- test/units/TestModuleUtilsBasic.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/units/TestModuleUtilsBasic.py b/test/units/TestModuleUtilsBasic.py index 3d85b613525c77..d1ee95a1a0ec39 100644 --- a/test/units/TestModuleUtilsBasic.py +++ b/test/units/TestModuleUtilsBasic.py @@ -95,9 +95,9 @@ def test_run_command_string_unsafe_with_env_variables(self): # test run_command with a command pipe (with both use_unsafe_shell=True|False) def test_run_command_string_unsafe_with_pipe(self): - (rc, out, err) = self.module.run_command('echo -n "foo bar" | cat', use_unsafe_shell=True) + (rc, out, err) = self.module.run_command('echo "foo bar" | cat', use_unsafe_shell=True) self.assertEqual(rc, 0) - self.assertEqual(out, 'foo bar') + self.assertEqual(out, 'foo bar\n') # test run_command with a shell redirect in (with both use_unsafe_shell=True|False) def test_run_command_string_unsafe_with_redirect_in(self):