diff options
author | Zac Medico <zmedico@gentoo.org> | 2008-06-21 09:26:53 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2008-06-21 09:26:53 +0000 |
commit | 8e309e9e33286225b3c05afba4e83d91286801a8 (patch) | |
tree | b8967312fc368aada564213c9981b9e9f6b83815 | |
parent | a290a7623d087f4d76b8458830072058ee859a17 (diff) | |
download | portage-8e309e9e33286225b3c05afba4e83d91286801a8.tar.gz portage-8e309e9e33286225b3c05afba4e83d91286801a8.tar.bz2 portage-8e309e9e33286225b3c05afba4e83d91286801a8.zip |
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
-rw-r--r-- | pym/portage/tests/sets/shell/testShell.py | 7 |
1 files 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) |