summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Maat <tristan.maat@codethink.co.uk>2017-11-07 18:07:20 +0000
committerTristan Maat <tristan.maat@codethink.co.uk>2017-11-15 17:20:36 +0000
commit76730dcb20ceff348f9f629b1aa29825eb6775ee (patch)
tree2b420f4e8f1b834a818b1272fa7a18365e11b646
parent1f868ba4b2a14652a25ffed9eb4a9d39afd87720 (diff)
downloadbuildstream-test_coverage_segfault.tar.gz
-rw-r--r--tests/pipeline/load.py11
-rw-r--r--tests/plugins/pipeline.py2
-rw-r--r--tests/project/plugins.py2
-rw-r--r--tests/variables/variables.py2
4 files changed, 3 insertions, 14 deletions
diff --git a/tests/pipeline/load.py b/tests/pipeline/load.py
index 9cd2fea62..eeeeb1dc5 100644
--- a/tests/pipeline/load.py
+++ b/tests/pipeline/load.py
@@ -14,17 +14,6 @@ DATA_DIR = os.path.join(
)
-def create_pipeline(tmpdir, basedir, target):
- context = Context([])
- project = Project(basedir, context)
-
- context.deploydir = os.path.join(str(tmpdir), 'deploy')
- context.artifactdir = os.path.join(str(tmpdir), 'artifact')
- context._platform = Platform.get_platform()
-
- return Pipeline(context, project, [target])
-
-
@pytest.mark.datafiles(os.path.join(DATA_DIR, 'simple'))
def test_load_simple(cli, datafiles, tmpdir):
basedir = os.path.join(datafiles.dirname, datafiles.basename)
diff --git a/tests/plugins/pipeline.py b/tests/plugins/pipeline.py
index 5f1a85e24..8f8525318 100644
--- a/tests/plugins/pipeline.py
+++ b/tests/plugins/pipeline.py
@@ -24,7 +24,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")
diff --git a/tests/project/plugins.py b/tests/project/plugins.py
index 5f7517278..ea21730b6 100644
--- a/tests/project/plugins.py
+++ b/tests/project/plugins.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], [])
# We've already validated that the plugin system works in
diff --git a/tests/variables/variables.py b/tests/variables/variables.py
index 7562857f9..04ac921d4 100644
--- a/tests/variables/variables.py
+++ b/tests/variables/variables.py
@@ -20,7 +20,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], [])
def assert_command(datafiles, tmpdir, target, command, expected):