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/plugins | |
parent | 1fedde82a0022d134c0f8f5f44bfa7896ff51d4f (diff) | |
download | buildstream-44b89d8c3418f415d9306743ec7849155ee46838.tar.gz |
Adjust tests to new API
Diffstat (limited to 'tests/plugins')
-rw-r--r-- | tests/plugins/pipeline.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/plugins/pipeline.py b/tests/plugins/pipeline.py index 1ff248178..9f5e94ae9 100644 --- a/tests/plugins/pipeline.py +++ b/tests/plugins/pipeline.py @@ -21,7 +21,7 @@ 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]) @pytest.mark.skipif(not HAVE_ROOT, reason="requires root permissions") @@ -30,7 +30,7 @@ def test_customsource(datafiles, tmpdir): basedir = os.path.join(datafiles.dirname, datafiles.basename) pipeline = create_pipeline(tmpdir, basedir, 'simple.bst') - assert(pipeline.target.get_kind() == "autotools") + assert(pipeline.targets[0].get_kind() == "autotools") @pytest.mark.skipif(not HAVE_ROOT, reason="requires root permissions") @@ -39,7 +39,7 @@ def test_customelement(datafiles, tmpdir): basedir = os.path.join(datafiles.dirname, datafiles.basename) pipeline = create_pipeline(tmpdir, basedir, 'simple.bst') - assert(pipeline.target.get_kind() == "foo") + assert(pipeline.targets[0].get_kind() == "foo") @pytest.mark.skipif(not HAVE_ROOT, reason="requires root permissions") |