aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2021-04-11 10:47:21 -0700
committerZac Medico <zmedico@gentoo.org>2021-04-11 11:04:22 -0700
commit2eb3ca092a528e0722e0ca32f616836ed8039936 (patch)
treebd010fdffd566cd18149e977e673466161d57c0f
parentman/emerge.1: fix typos (diff)
downloadportage-2eb3ca092a528e0722e0ca32f616836ed8039936.tar.gz
portage-2eb3ca092a528e0722e0ca32f616836ed8039936.tar.bz2
portage-2eb3ca092a528e0722e0ca32f616836ed8039936.zip
SimpleRepomanTestCase: update portage.const.EPREFIX after fork
Update portage.const.EPREFIX in each RepomanRun fork, since the portage.const PORTAGE_OVERRIDE_EPREFIX logic only executes when the module is first loaded in the parent process. Fixes: ba58bc1ae12a ("SimpleRepomanTestCase: collect results from subprocesses") Bug: https://bugs.gentoo.org/779508 Signed-off-by: Zac Medico <zmedico@gentoo.org>
-rw-r--r--repoman/lib/repoman/tests/simple/test_simple.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/repoman/lib/repoman/tests/simple/test_simple.py b/repoman/lib/repoman/tests/simple/test_simple.py
index c4a864ff8..9ec01df3b 100644
--- a/repoman/lib/repoman/tests/simple/test_simple.py
+++ b/repoman/lib/repoman/tests/simple/test_simple.py
@@ -62,6 +62,7 @@ class RepomanRun(types.SimpleNamespace):
def _subprocess(args, cwd, env, expected, debug):
os.chdir(cwd)
os.environ.update(env)
+ portage.const.EPREFIX = env["PORTAGE_OVERRIDE_EPREFIX"]
if debug:
args = ["-vvvv"] + args
repoman_vars = _repoman_init(["repoman"] + args)