public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] portage r14447 - main/trunk/pym/portage/tests/bin
@ 2009-09-27 18:30 Zac Medico (zmedico)
  0 siblings, 0 replies; only message in thread
From: Zac Medico (zmedico) @ 2009-09-27 18:30 UTC (permalink / raw
  To: gentoo-commits

Author: zmedico
Date: 2009-09-27 18:30:44 +0000 (Sun, 27 Sep 2009)
New Revision: 14447

Modified:
   main/trunk/pym/portage/tests/bin/setup_env.py
Log:
Fix binTestsInit() to use correct values for PORTAGE_BIN_PATH and
PORTAGE_PYM_PATH.


Modified: main/trunk/pym/portage/tests/bin/setup_env.py
===================================================================
--- main/trunk/pym/portage/tests/bin/setup_env.py	2009-09-27 18:23:32 UTC (rev 14446)
+++ main/trunk/pym/portage/tests/bin/setup_env.py	2009-09-27 18:30:44 UTC (rev 14447)
@@ -9,11 +9,12 @@
 from portage import shutil
 from portage.tests import TestCase
 from portage.process import spawn
-from portage.const import PORTAGE_BIN_PATH
 
-bindir = os.path.join(os.path.dirname(os.path.dirname(
+basepath = os.path.join(os.path.dirname(os.path.dirname(
 	os.path.abspath(__file__))),
-	"..", "..", "..", "bin", "ebuild-helpers")
+	"..", "..", "..")
+bindir = os.path.join(basepath, "bin")
+pymdir = os.path.join(basepath, "pym")
 basedir = None
 env = None
 
@@ -35,7 +36,8 @@
 	env["S"] = os.path.join(basedir, "workdir")
 	env["PF"] = "portage-tests-0.09-r1"
 	env["PATH"] = bindir + ":" + env["PATH"]
-	env["PORTAGE_BIN_PATH"] = PORTAGE_BIN_PATH
+	env["PORTAGE_BIN_PATH"] = bindir
+	env["PORTAGE_PYM_PATH"] = pymdir
 	os.mkdir(env["D"])
 	os.mkdir(env["T"])
 	os.mkdir(env["S"])
@@ -76,9 +78,10 @@
 		return portage_func(*newargs)
 	return derived_func
 
-for bin in os.listdir(bindir):
+for bin in os.listdir(os.path.join(bindir, "ebuild-helpers")):
 	if bin.startswith("do") or \
 	   bin.startswith("new") or \
 	   bin.startswith("prep") or \
 	   bin in ["ecompress","ecompressdir","fowners","fperms"]:
-		globals()[bin] = create_portage_wrapper(os.path.join(bindir, bin))
+		globals()[bin] = create_portage_wrapper(
+			os.path.join(bindir, "ebuild-helpers", bin))




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-09-27 18:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-27 18:30 [gentoo-commits] portage r14447 - main/trunk/pym/portage/tests/bin Zac Medico (zmedico)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox