summaryrefslogtreecommitdiff
path: root/pym
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-07-22 23:21:14 +0000
committerZac Medico <zmedico@gentoo.org>2007-07-22 23:21:14 +0000
commit7a6a18fe13af0c5573d28a4b455ce8ec3856c4c6 (patch)
treed1a30dda1042fb2cd47e136c9565872a792bd3f4 /pym
parentfix missing import, default value for value in case we try to .join on a vari... (diff)
downloadportage-idfetch-7a6a18fe13af0c5573d28a4b455ce8ec3856c4c6.tar.gz
portage-idfetch-7a6a18fe13af0c5573d28a4b455ce8ec3856c4c6.tar.bz2
portage-idfetch-7a6a18fe13af0c5573d28a4b455ce8ec3856c4c6.zip
Fix hardcoded /usr/bin/echo to use portage.process.find_binary().
svn path=/main/trunk/; revision=7363
Diffstat (limited to 'pym')
-rw-r--r--pym/portage/tests/sets/shell/testShell.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/pym/portage/tests/sets/shell/testShell.py b/pym/portage/tests/sets/shell/testShell.py
index cc0a1bb8..938c265e 100644
--- a/pym/portage/tests/sets/shell/testShell.py
+++ b/pym/portage/tests/sets/shell/testShell.py
@@ -3,6 +3,7 @@
# Distributed under the terms of the GNU General Public License v2
# $Id$
+from portage.process import find_binary
from portage.tests import TestCase, test_cps
from portage.sets.shell import CommandOutputSet
@@ -18,7 +19,8 @@ class CommandOutputSetTestCase(TestCase):
def testCommand(self):
input = set(test_cps)
- command = "/usr/bin/echo -e "
+ command = find_binary("echo")
+ command += " -e "
for a in input:
command += "\"%s\n\"" % a
s = CommandOutputSet('testset', command)