commit:     87aee5be6981ecf3dc30614f273488ab3a87bde9
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Sat Jan 18 13:05:29 2020 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Sat Jan 18 13:05:29 2020 +0000
URL:        https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=87aee5be

tests/init.sh: clear PORTDIR from env

Portage seems to inject PORTDIR (with a weird value) in the environment.
This shows up during make check on some systems.  (Bug #701402.)
Always remove it from the environment to avoid interference.

Bug: https://bugs.gentoo.org/701402
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>

 tests/init.sh.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/init.sh.in b/tests/init.sh.in
index 7f5db06..5ffc7ef 100644
--- a/tests/init.sh.in
+++ b/tests/init.sh.in
@@ -22,7 +22,7 @@ setup_env() {
 setup_env
 
 # clean any random vars from the host system
-unset ROOT PORTAGE_CONFIGROOT PORTAGE_QUIET
+unset ROOT PORTAGE_CONFIGROOT PORTAGE_QUIET PORTDIR
 # but make sure we don't implicitly rely on user's setup
 export PORTAGE_CONFIGROOT="${ab}/not/a/real/path"
 # Always use UTC for timestamps to keep tests stable. #551806

Reply via email to