Fix hardcoded /usr/bin/echo to use portage.process.find_binary().
authorZac Medico <zmedico@gentoo.org>
Sun, 22 Jul 2007 23:21:14 +0000 (23:21 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 22 Jul 2007 23:21:14 +0000 (23:21 -0000)
svn path=/main/trunk/; revision=7363

pym/portage/tests/sets/shell/testShell.py

index cc0a1bb879c88370bc5e6d211743ec8bec6323bd..938c265e1194df189aaefff042d9f6b9073901c5 100644 (file)
@@ -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)