summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Pollard <tom.pollard@codethink.co.uk>2018-11-21 11:37:48 +0000
committerTom Pollard <tom.pollard@codethink.co.uk>2018-11-21 11:37:48 +0000
commit050cd1bda2e9ee8061a0fe999a9f89bc272b082e (patch)
treec6608ccfaf1c98f792d1b69d52ba6d84a49df725
parentdaca0c01c5dd56e99f89852a4c7643289396cfb2 (diff)
downloadbuildstream-050cd1bda2e9ee8061a0fe999a9f89bc272b082e.tar.gz
tests/plugin/pipeline.py: Avoid using host user conftpollard/pipelinehostconfig
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.
-rw-r--r--tests/plugins/pipeline.py2
1 files changed, 1 insertions, 1 deletions
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)