summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2017-07-09 16:05:42 +0900
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2017-07-10 16:24:58 +0900
commitc96db03e291447f1f78c62e507326c22ec56960b (patch)
tree3aa4904475762ac0694eafc718ab955aab5060e8
parentba4e5779e2a03b8f6d2b9cae1e33f8f41f7bf855 (diff)
downloadbuildstream-c96db03e291447f1f78c62e507326c22ec56960b.tar.gz
artifact tests: Adjust to work with new configuration and APIs
-rw-r--r--tests/artifactcache/basics.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/artifactcache/basics.py b/tests/artifactcache/basics.py
index 6422cc6ee..c7661820c 100644
--- a/tests/artifactcache/basics.py
+++ b/tests/artifactcache/basics.py
@@ -18,7 +18,8 @@ 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_share = os.path.join(str(tmpdir), 'share')
+ 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)
@@ -57,7 +58,8 @@ def test_commit_extract(pipeline):
assert(content == 'hello, world')
-def test_push_fetch(pipeline):
+def test_push_pull(pipeline):
+
build_commit(pipeline)
assert(pipeline.artifacts.contains(pipeline.target))
@@ -66,5 +68,5 @@ def test_push_fetch(pipeline):
pipeline.artifacts.remove(pipeline.target)
assert(not pipeline.artifacts.contains(pipeline.target))
- pipeline.artifacts.fetch(pipeline.target)
+ pipeline.artifacts.pull(pipeline.target)
assert(pipeline.artifacts.contains(pipeline.target))