From 8e309e9e33286225b3c05afba4e83d91286801a8 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 21 Jun 2008 09:26:53 +0000 Subject: [PATCH] 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 --- pym/portage/tests/sets/shell/testShell.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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) -- 2.26.2