Gentoo Archives: gentoo-commits

From: "Zac Medico (zmedico)" <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] portage r10751 - main/trunk/pym/portage/tests/sets/shell
Date: Sat, 21 Jun 2008 09:26:59
Message-Id: E1K9zN0-0004NI-95@stork.gentoo.org
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