summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>2014-06-26 13:35:19 +0300
committerGuido Günther <agx@sigxcpu.org>2015-02-18 08:57:06 +0100
commit1c6df3eada8a75089ccfaa4e75d036623762d4b5 (patch)
tree6fc6f0be44666bbac3b4201e09191ee301dd6104 /tests
parent8c5e565570faa70599f307a22bb705227afb577f (diff)
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__.py3
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):