Add PORTAGE_BIN_PATH to the environment since it's used by dobin to locate isolated...
authorZac Medico <zmedico@gentoo.org>
Tue, 19 Jun 2007 06:16:27 +0000 (06:16 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 19 Jun 2007 06:16:27 +0000 (06:16 -0000)
svn path=/main/trunk/; revision=6869

pym/portage/tests/bin/setup_env.py

index 1f249170176bf92fe2619acf11e5ac7b2e244686..274d7265486394f942295cab7162dc677fc983da 100644 (file)
@@ -7,6 +7,7 @@ import os, shutil, sys
 from os.path import dirname, abspath, join
 from portage.tests import TestCase
 from portage.process import spawn
+from portage.const import PORTAGE_BIN_PATH
 
 bindir = join(dirname(dirname(abspath(__file__))), "..", "..", "..", "bin")
 basedir = join(dirname(dirname(abspath(__file__))), "bin", "root")
@@ -15,6 +16,7 @@ os.environ["T"] = os.path.join(basedir, "temp")
 os.environ["S"] = os.path.join(basedir, "workdir")
 os.environ["PF"] = "portage-tests-0.09-r1"
 os.environ["PATH"] = bindir + ":" + os.environ["PATH"]
+os.environ["PORTAGE_BIN_PATH"] = PORTAGE_BIN_PATH
 
 def binTestsCleanup():
        if os.access(basedir, os.W_OK):