commit:     2eb3ca092a528e0722e0ca32f616836ed8039936
Author:     Zac Medico <zmedico <AT> gentoo <DOT> org>
AuthorDate: Sun Apr 11 17:47:21 2021 +0000
Commit:     Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Sun Apr 11 18:04:22 2021 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=2eb3ca09

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 <AT> gentoo.org>

 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 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)

Reply via email to