From 64352000dd27733e961b2dce6fb511636a5b5073 Mon Sep 17 00:00:00 2001 From: Markus Lehtonen Date: Thu, 26 Jun 2014 13:35:19 +0300 Subject: [PATCH] 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. Change-Id: I04b83680016690ffa5a2433ad16e9968e54f6f4a Signed-off-by: Markus Lehtonen --- tests/component/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/component/__init__.py b/tests/component/__init__.py index 33caea7..d8ad3e2 100644 --- a/tests/component/__init__.py +++ b/tests/component/__init__.py @@ -88,6 +88,9 @@ class ComponentTestBase(object): # 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): -- 2.7.4