commit:     b59cf8bd11e48ebee2b3da185de48fd0f9aec4b8
Author:     Zac Medico <zmedico <AT> gentoo <DOT> org>
AuthorDate: Sun Mar 22 01:10:04 2020 +0000
Commit:     Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Sun Mar 22 01:10:40 2020 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=b59cf8bd

DoebuildSpawnTestCase: add $HOME variable

Signed-off-by: Zac Medico <zmedico <AT> gentoo.org>

 lib/portage/tests/ebuild/test_doebuild_spawn.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lib/portage/tests/ebuild/test_doebuild_spawn.py 
b/lib/portage/tests/ebuild/test_doebuild_spawn.py
index 7750f87b3..aedd0b8de 100644
--- a/lib/portage/tests/ebuild/test_doebuild_spawn.py
+++ b/lib/portage/tests/ebuild/test_doebuild_spawn.py
@@ -66,9 +66,11 @@ class DoebuildSpawnTestCase(TestCase):
                        settings['PORTAGE_BUILDDIR'] = os.path.join(
                                settings['PORTAGE_TMPDIR'], cpv)
                        settings['PYTHONDONTWRITEBYTECODE'] = 
os.environ.get('PYTHONDONTWRITEBYTECODE', '')
+                       settings['HOME'] = os.path.join(
+                               settings['PORTAGE_BUILDDIR'], 'homedir')
                        settings['T'] = os.path.join(
                                settings['PORTAGE_BUILDDIR'], 'temp')
-                       for x in ('PORTAGE_BUILDDIR', 'T'):
+                       for x in ('PORTAGE_BUILDDIR', 'HOME', 'T'):
                                os.makedirs(settings[x])
                        # Create a fake environment, to pretend as if the ebuild
                        # has been sourced already.

Reply via email to