From: Zac Medico Date: Sat, 21 Jun 2008 09:26:53 +0000 (-0000) Subject: Use bash's built-in echo instead of the actual echo binary since it has X-Git-Tag: v2.2_rc2~363 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8e309e9e33286225b3c05afba4e83d91286801a8;p=portage.git Use bash's built-in echo instead of the actual echo binary since it has compatibility issues on FreeBSD systems. Thanks to aballier for reporting the issue and testing this patch. svn path=/main/trunk/; revision=10751 --- diff --git a/pym/portage/tests/sets/shell/testShell.py b/pym/portage/tests/sets/shell/testShell.py index b1f4aa46c..43d69599a 100644 --- a/pym/portage/tests/sets/shell/testShell.py +++ b/pym/portage/tests/sets/shell/testShell.py @@ -19,10 +19,11 @@ class CommandOutputSetTestCase(TestCase): def testCommand(self): input = set(test_cps) - command = find_binary("echo") - command += " -e " + command = find_binary("bash") + command += " -c '" for a in input: - command += "\"%s\n\"" % a + command += " echo -e \"%s\" ; " % a + command += "'" s = CommandOutputSet(command) atoms = s.getAtoms() self.assertEqual(atoms, input)