From 050cd1bda2e9ee8061a0fe999a9f89bc272b082e Mon Sep 17 00:00:00 2001 From: Tom Pollard Date: Wed, 21 Nov 2018 11:37:48 +0000 Subject: tests/plugin/pipeline.py: Avoid using host user conf create_pipeline was passing no config parameter to context.load, leading to _context.py loading in the host's buildstream user conf when running tests locally, potentially leading to unwanted errors. --- tests/plugins/pipeline.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/plugins/pipeline.py b/tests/plugins/pipeline.py index 6cba7a125..6aee104e2 100644 --- a/tests/plugins/pipeline.py +++ b/tests/plugins/pipeline.py @@ -14,7 +14,7 @@ DATA_DIR = os.path.join( def create_pipeline(tmpdir, basedir, target): context = Context() - context.load() + context.load(config=os.devnull) context.deploydir = os.path.join(str(tmpdir), 'deploy') context.artifactdir = os.path.join(str(tmpdir), 'artifact') project = Project(basedir, context) -- cgit v1.2.1