summaryrefslogtreecommitdiff
path: root/tests/artifactcache
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2017-07-18 11:08:42 +0200
committerJürg Billeter <j@bitron.ch>2017-07-20 07:24:56 +0200
commit85de4876371cc84d885cd954503651b36fc09bc6 (patch)
tree5ee3bff643d6913fe73b01a747b391b264e244d7 /tests/artifactcache
parent0a1ad73cd3ab993f85e2933433d1ae4f835517b6 (diff)
downloadbuildstream-85de4876371cc84d885cd954503651b36fc09bc6.tar.gz
tests/artifactcache: Do not configure pull/push for all tests
Diffstat (limited to 'tests/artifactcache')
-rw-r--r--tests/artifactcache/basics.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/artifactcache/basics.py b/tests/artifactcache/basics.py
index 62afb16d7..1f44cc8b0 100644
--- a/tests/artifactcache/basics.py
+++ b/tests/artifactcache/basics.py
@@ -20,8 +20,6 @@ def pipeline(tmpdir):
project = Project(DATA_DIR, 'x86_64')
context.artifactdir = os.path.join(str(tmpdir), 'artifact')
context.builddir = os.path.join(str(tmpdir), 'build')
- context.artifact_pull = os.path.join(str(tmpdir), 'share')
- context.artifact_push = os.path.join(str(tmpdir), 'share')
return Pipeline(context, project, "simple.bst", None)
@@ -75,7 +73,10 @@ def test_commit_extract(pipeline):
assert(content == 'hello, world')
-def test_push_pull(pipeline):
+def test_push_pull(pipeline, tmpdir):
+
+ pipeline.context.artifact_pull = os.path.join(str(tmpdir), 'share')
+ pipeline.context.artifact_push = os.path.join(str(tmpdir), 'share')
build_commit(pipeline)
assert(pipeline.artifacts.contains(pipeline.target))