diff options
author | Tristan Maat <tristan.maat@codethink.com> | 2017-08-02 17:59:30 +0100 |
---|---|---|
committer | Tristan Maat <tristan.maat@codethink.co.uk> | 2017-09-28 11:30:50 +0100 |
commit | 620006f2c3e6271e56743edc129c4fb19eab241a (patch) | |
tree | 166c1fc53ff6883acbd345df7cd7d11f549dc794 /tests/variables | |
parent | 32be8c7b78a80534d75648448221cac5eccd993b (diff) | |
download | buildstream-620006f2c3e6271e56743edc129c4fb19eab241a.tar.gz |
Add platform factories
Diffstat (limited to 'tests/variables')
-rw-r--r-- | tests/variables/variables.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/variables/variables.py b/tests/variables/variables.py index 66f88c695..156081f8f 100644 --- a/tests/variables/variables.py +++ b/tests/variables/variables.py @@ -3,6 +3,7 @@ import pytest from buildstream import Context, Project, BuildElement from buildstream._pipeline import Pipeline +from buildstream._platform import Platform DATA_DIR = os.path.join( os.path.dirname(os.path.realpath(__file__)), @@ -13,6 +14,7 @@ def create_pipeline(tmpdir, basedir, target, variant): context = Context('x86_64') project = Project(basedir, 'x86_64') context.artifactdir = os.path.join(str(tmpdir), 'artifact') + context._platform = Platform.get_platform(context, project) return Pipeline(context, project, target, variant) |