If the portage user's home directory does not exist, it can trigger unit test failures like in bug 674088. The portage.data._get_global already warns if the user is missing, so it could be extended to warn if the home directory does not exist.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/portage.git/commit/?id=97f1f6a42796c91bf1eba628605c4ef641dcc532 commit 97f1f6a42796c91bf1eba628605c4ef641dcc532 Author: James Stevenson <james.al.stevenson@gmail.com> AuthorDate: 2021-09-04 09:53:46 +0000 Commit: Michał Górny <mgorny@gentoo.org> CommitDate: 2021-09-04 11:51:28 +0000 Warn if portage home directory is missing Signed-off-by: James Stevenson <james.al.stevenson@gmail.com> Bug: https://bugs.gentoo.org/674212 Closes: https://github.com/gentoo/portage/pull/736 Signed-off-by: Michał Górny <mgorny@gentoo.org> lib/portage/data.py | 9 +++++++++ 1 file changed, 9 insertions(+)