diff options
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 f6b1224..8bd3f7f 100644 --- a/tests/component/__init__.py +++ b/tests/component/__init__.py @@ -89,6 +89,9 @@ class ComponentTestBase(GbpLogTester): # Create a top-level tmpdir for the test cls._tmproot = tempfile.mkdtemp(prefix='gbp_%s_' % cls.__name__, dir='.') + # 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): |