diff options
author | Tristan Maat <tristan.maat@codethink.co.uk> | 2017-10-31 15:41:42 +0000 |
---|---|---|
committer | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2017-11-04 17:35:30 +0900 |
commit | 44b89d8c3418f415d9306743ec7849155ee46838 (patch) | |
tree | 032a2d787e706afb64f64eb8af7e489ab36150ac /tests/variables | |
parent | 1fedde82a0022d134c0f8f5f44bfa7896ff51d4f (diff) | |
download | buildstream-44b89d8c3418f415d9306743ec7849155ee46838.tar.gz |
Adjust tests to new API
Diffstat (limited to 'tests/variables')
-rw-r--r-- | tests/variables/variables.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/variables/variables.py b/tests/variables/variables.py index 8c5db0a19..d6855591e 100644 --- a/tests/variables/variables.py +++ b/tests/variables/variables.py @@ -18,15 +18,15 @@ def create_pipeline(tmpdir, basedir, target): context.artifactdir = os.path.join(str(tmpdir), 'artifact') context._platform = Platform.get_platform() - return Pipeline(context, project, target) + 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) - assert(isinstance(pipeline.target, BuildElement)) + assert(isinstance(pipeline.targets[0], BuildElement)) - commands = pipeline.target.commands + commands = pipeline.targets[0].commands assert(commands.get(command) is not None) assert(len(commands[command]) > 0) |