From 0125db0d285aeb34076486ad6936add54480e53c 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. 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 7abb16d..ea54036 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): -- 2.7.4