summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage/tests/sets/shell/testShell.py7
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)