Fix PORTDIR in emerge tests.
authorZac Medico <zmedico@gentoo.org>
Mon, 29 Aug 2011 18:24:15 +0000 (11:24 -0700)
committerZac Medico <zmedico@gentoo.org>
Mon, 29 Aug 2011 18:25:01 +0000 (11:25 -0700)
pym/portage/tests/emerge/test_simple.py

index 2aca3e308ef025ef3a4bbe88fff13a85524789f7..09972ba3575f0fa99313b58e2f83a44fae0695d5 100644 (file)
@@ -72,6 +72,7 @@ class SimpleEmergeTestCase(TestCase):
                distdir = os.path.join(eprefix, "distdir")
                fake_bin = os.path.join(eprefix, "bin")
                portage_tmpdir = os.path.join(eprefix, "var", "tmp", "portage")
+               portdir = settings["PORTDIR"]
                profile_path = settings.profile_path
                var_cache_edb = os.path.join(eprefix, "var", "cache", "edb")
 
@@ -106,6 +107,7 @@ class SimpleEmergeTestCase(TestCase):
                        "PORTAGE_GRPNAME" : os.environ["PORTAGE_GRPNAME"],
                        "PORTAGE_TMPDIR" : portage_tmpdir,
                        "PORTAGE_USERNAME" : os.environ["PORTAGE_USERNAME"],
+                       "PORTDIR" : portdir,
                        "PYTHONPATH" : pythonpath,
                }