1 |
Author: zmedico |
2 |
Date: 2008-06-21 09:26:53 +0000 (Sat, 21 Jun 2008) |
3 |
New Revision: 10751 |
4 |
|
5 |
Modified: |
6 |
main/trunk/pym/portage/tests/sets/shell/testShell.py |
7 |
Log: |
8 |
Use bash's built-in echo instead of the actual echo binary since it has |
9 |
compatibility issues on FreeBSD systems. Thanks to aballier for reporting |
10 |
the issue and testing this patch. |
11 |
|
12 |
|
13 |
Modified: main/trunk/pym/portage/tests/sets/shell/testShell.py |
14 |
=================================================================== |
15 |
--- main/trunk/pym/portage/tests/sets/shell/testShell.py 2008-06-21 05:18:26 UTC (rev 10750) |
16 |
+++ main/trunk/pym/portage/tests/sets/shell/testShell.py 2008-06-21 09:26:53 UTC (rev 10751) |
17 |
@@ -19,10 +19,11 @@ |
18 |
def testCommand(self): |
19 |
|
20 |
input = set(test_cps) |
21 |
- command = find_binary("echo") |
22 |
- command += " -e " |
23 |
+ command = find_binary("bash") |
24 |
+ command += " -c '" |
25 |
for a in input: |
26 |
- command += "\"%s\n\"" % a |
27 |
+ command += " echo -e \"%s\" ; " % a |
28 |
+ command += "'" |
29 |
s = CommandOutputSet(command) |
30 |
atoms = s.getAtoms() |
31 |
self.assertEqual(atoms, input) |
32 |
|
33 |
-- |
34 |
gentoo-commits@l.g.o mailing list |