From 2eb3ca092a528e0722e0ca32f616836ed8039936 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 11 Apr 2021 10:47:21 -0700 Subject: [PATCH] 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 --- repoman/lib/repoman/tests/simple/test_simple.py | 1 + 1 file changed, 1 insertion(+) diff --git a/repoman/lib/repoman/tests/simple/test_simple.py b/repoman/lib/repoman/tests/simple/test_simple.py index c4a864ff86..9ec01df3bd 100644 --- a/repoman/lib/repoman/tests/simple/test_simple.py +++ b/repoman/lib/repoman/tests/simple/test_simple.py @@ -62,6 +62,7 @@ async def run(self): 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)