summaryrefslogtreecommitdiff
path: root/tests/pipeline
diff options
context:
space:
mode:
authorTristan Maat <tristan.maat@codethink.com>2017-08-02 17:59:30 +0100
committerTristan Maat <tristan.maat@codethink.co.uk>2017-09-28 11:30:50 +0100
commit620006f2c3e6271e56743edc129c4fb19eab241a (patch)
tree166c1fc53ff6883acbd345df7cd7d11f549dc794 /tests/pipeline
parent32be8c7b78a80534d75648448221cac5eccd993b (diff)
downloadbuildstream-620006f2c3e6271e56743edc129c4fb19eab241a.tar.gz
Add platform factories
Diffstat (limited to 'tests/pipeline')
-rw-r--r--tests/pipeline/load.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/pipeline/load.py b/tests/pipeline/load.py
index 22746dd2f..2071bff4e 100644
--- a/tests/pipeline/load.py
+++ b/tests/pipeline/load.py
@@ -3,6 +3,7 @@ import pytest
from buildstream import Context, Project, Scope
from buildstream._pipeline import Pipeline
+from buildstream._platform import Platform
DATA_DIR = os.path.join(
os.path.dirname(os.path.realpath(__file__)),
@@ -16,6 +17,7 @@ def create_pipeline(tmpdir, basedir, target, variant):
context.deploydir = os.path.join(str(tmpdir), 'deploy')
context.artifactdir = os.path.join(str(tmpdir), 'artifact')
+ context._platform = Platform.get_platform(context, project)
return Pipeline(context, project, target, variant)