diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-07-22 23:21:14 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-07-22 23:21:14 +0000 |
commit | 7a6a18fe13af0c5573d28a4b455ce8ec3856c4c6 (patch) | |
tree | d1a30dda1042fb2cd47e136c9565872a792bd3f4 | |
parent | 758d75163fea3acc60d1e921e052cc8bd86ef7d5 (diff) | |
download | portage-7a6a18fe13af0c5573d28a4b455ce8ec3856c4c6.tar.gz portage-7a6a18fe13af0c5573d28a4b455ce8ec3856c4c6.tar.bz2 portage-7a6a18fe13af0c5573d28a4b455ce8ec3856c4c6.zip |
Fix hardcoded /usr/bin/echo to use portage.process.find_binary().
svn path=/main/trunk/; revision=7363
-rw-r--r-- | pym/portage/tests/sets/shell/testShell.py | 4 |
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 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) |