aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2020-01-18 14:05:29 +0100
committerFabian Groffen <grobian@gentoo.org>2020-01-18 14:05:29 +0100
commit87aee5be6981ecf3dc30614f273488ab3a87bde9 (patch)
tree987282889851925fb50d01eab686085b77a351e1 /tests
parentlibq/tree: avoid double free in sorted case for tree_next_pkg_int (diff)
downloadportage-utils-87aee5be6981ecf3dc30614f273488ab3a87bde9.tar.gz
portage-utils-87aee5be6981ecf3dc30614f273488ab3a87bde9.tar.bz2
portage-utils-87aee5be6981ecf3dc30614f273488ab3a87bde9.zip
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@gentoo.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/init.sh.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/init.sh.in b/tests/init.sh.in
index 7f5db066..5ffc7ef1 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