summaryrefslogtreecommitdiff
path: root/tests/variables
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2017-09-22 12:16:45 +0900
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2017-10-08 17:03:36 +0900
commitbc8a2ebb3b0d8e0f535b2956b9c6a3ad0a05fcef (patch)
tree3539adb821e527613bb13bc4242ae0b6c1665532 /tests/variables
parente1df2e2d0a33667993c9800ca567b755037704a0 (diff)
downloadbuildstream-bc8a2ebb3b0d8e0f535b2956b9c6a3ad0a05fcef.tar.gz
Updating test cases to construct the project/loader properly again.
This had changed when we added project variants and had to split up the loading steps a bit, now all is back to normal without variants.
Diffstat (limited to 'tests/variables')
-rw-r--r--tests/variables/variables.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/variables/variables.py b/tests/variables/variables.py
index 55a44b322..8cf84b6a4 100644
--- a/tests/variables/variables.py
+++ b/tests/variables/variables.py
@@ -12,18 +12,18 @@ DATA_DIR = os.path.join(
)
-def create_pipeline(tmpdir, basedir, target, variant):
+def create_pipeline(tmpdir, basedir, target):
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)
+ return Pipeline(context, project, target)
def assert_command(datafiles, tmpdir, target, command, expected):
basedir = os.path.join(datafiles.dirname, datafiles.basename)
- pipeline = create_pipeline(tmpdir, basedir, target, None)
+ pipeline = create_pipeline(tmpdir, basedir, target)
assert(isinstance(pipeline.target, BuildElement))
commands = pipeline.target.commands