Skip to content

Commit

Permalink
Fixes #6542 rewrite test string for osx compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
jctanner committed Mar 18, 2014
1 parent 84908a5 commit db3d2e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/units/TestModuleUtilsBasic.py
Expand Up @@ -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):
Expand Down

0 comments on commit db3d2e1

Please sign in to comment.