1 |
commit: 4aff1f7cb3d81e05a780b7d2b3e2cb5b4e0d8109 |
2 |
Author: Mike Frysinger <vapier <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jun 3 15:39:32 2015 +0000 |
4 |
Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jun 3 15:39:32 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=4aff1f7c |
7 |
|
8 |
tests: avoid reading host config settings |
9 |
|
10 |
Make sure the host's settings don't get loaded by accident as they |
11 |
might cause misbehavior in the tests. We want these to be hermetic. |
12 |
|
13 |
tests/init.sh | 2 ++ |
14 |
1 file changed, 2 insertions(+) |
15 |
|
16 |
diff --git a/tests/init.sh b/tests/init.sh |
17 |
index e2c3562..b3f634e 100644 |
18 |
--- a/tests/init.sh |
19 |
+++ b/tests/init.sh |
20 |
@@ -31,6 +31,8 @@ setup_env |
21 |
|
22 |
# clean any random vars from the host system |
23 |
unset ROOT PORTAGE_CONFIGROOT PORTAGE_QUIET |
24 |
+# but make sure we don't implicitly rely on user's setup |
25 |
+export PORTAGE_CONFIGROOT="${ab}/not/a/real/path" |
26 |
|
27 |
q -i -q |