From: Markus Lehtonen Date: Thu, 26 Jun 2014 10:35:19 +0000 (+0300) Subject: ComponentTestBase: ignore system and user config X-Git-Tag: tizen/0.6.15-20140828~32 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=64352000dd27733e961b2dce6fb511636a5b5073;p=tools%2Fgit-buildpackage.git 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 --- diff --git a/tests/component/__init__.py b/tests/component/__init__.py index 33caea70..d8ad3e2d 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):