aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2015-06-03 11:39:32 -0400
committerMike Frysinger <vapier@gentoo.org>2015-06-03 11:39:32 -0400
commit4aff1f7cb3d81e05a780b7d2b3e2cb5b4e0d8109 (patch)
treeff38629bb870783f2c1df0c9b7c2ba9d34700196
parenttweak s390/sh ARCH defaults (diff)
downloadportage-utils-4aff1f7c.tar.gz
portage-utils-4aff1f7c.tar.bz2
portage-utils-4aff1f7c.zip
tests: avoid reading host config settings
Make sure the host's settings don't get loaded by accident as they might cause misbehavior in the tests. We want these to be hermetic.
-rw-r--r--tests/init.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/init.sh b/tests/init.sh
index e2c3562..b3f634e 100644
--- a/tests/init.sh
+++ b/tests/init.sh
@@ -31,6 +31,8 @@ setup_env
# clean any random vars from the host system
unset ROOT PORTAGE_CONFIGROOT PORTAGE_QUIET
+# but make sure we don't implicitly rely on user's setup
+export PORTAGE_CONFIGROOT="${ab}/not/a/real/path"
q -i -q