commit:     4aff1f7cb3d81e05a780b7d2b3e2cb5b4e0d8109
Author:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
AuthorDate: Wed Jun  3 15:39:32 2015 +0000
Commit:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Wed Jun  3 15:39:32 2015 +0000
URL:        https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=4aff1f7c

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.

 tests/init.sh | 2 ++
 1 file changed, 2 insertions(+)

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
 

Reply via email to