From: Zac Medico Date: Sun, 22 Jul 2007 23:21:14 +0000 (-0000) Subject: Fix hardcoded /usr/bin/echo to use portage.process.find_binary(). X-Git-Tag: v2.2_pre1~961 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7a6a18fe13af0c5573d28a4b455ce8ec3856c4c6;p=portage.git Fix hardcoded /usr/bin/echo to use portage.process.find_binary(). svn path=/main/trunk/; revision=7363 --- diff --git a/pym/portage/tests/sets/shell/testShell.py b/pym/portage/tests/sets/shell/testShell.py index cc0a1bb87..938c265e1 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)