diff options
author | Markus Lehtonen <markus.lehtonen@linux.intel.com> | 2014-06-26 13:35:19 +0300 |
---|---|---|
committer | Markus Lehtonen <markus.lehtonen@linux.intel.com> | 2014-11-14 14:21:38 +0200 |
commit | 0125db0d285aeb34076486ad6936add54480e53c (patch) | |
tree | f7b1cad1e9f561182649af7d25178432fdc141e6 /tests | |
parent | 287688615250c9272ae3df1b138d289e524c96a4 (diff) | |
download | git-buildpackage-0125db0d285aeb34076486ad6936add54480e53c.tar.gz git-buildpackage-0125db0d285aeb34076486ad6936add54480e53c.tar.bz2 git-buildpackage-0125db0d285aeb34076486ad6936add54480e53c.zip |
ComponentTestBase: ignore system and user config
User might have a system and/or user specific gbp config files. Disable
these config files so that they don't affect the component tests.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/component/__init__.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/component/__init__.py b/tests/component/__init__.py index 7abb16d1..ea540368 100644 --- a/tests/component/__init__.py +++ b/tests/component/__init__.py @@ -85,6 +85,9 @@ class ComponentTestBase(object): # Don't let git see that we're (possibly) under a git directory cls.orig_env = os.environ.copy() os.environ['GIT_CEILING_DIRECTORIES'] = os.getcwd() + # Prevent local config files from messing up the tests + os.environ['GBP_CONF_FILES'] = '%(top_dir)s/.gbp.conf:' \ + '%(top_dir)s/debian/gbp.conf:%(git_dir)s/gbp.conf' @classmethod def teardown_class(cls): |