From 7a6a18fe13af0c5573d28a4b455ce8ec3856c4c6 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 22 Jul 2007 23:21:14 +0000 Subject: Fix hardcoded /usr/bin/echo to use portage.process.find_binary(). svn path=/main/trunk/; revision=7363 --- pym/portage/tests/sets/shell/testShell.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) -- cgit v1.2.3-1-g7c22