summaryrefslogtreecommitdiff
path: root/tests/artifactcache
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2018-11-14 16:56:24 +0000
committerJürg Billeter <j@bitron.ch>2018-11-19 20:54:30 +0100
commitba6c96e863ee7460f598d51869522a43be7d94c3 (patch)
tree23ef22fba979474e4cfadd1bdc66843eec0296d0 /tests/artifactcache
parentd4f1218495fc883b2178c8ee2cf41914d445c09d (diff)
downloadbuildstream-ba6c96e863ee7460f598d51869522a43be7d94c3.tar.gz
CasBasedDirectory: Change constructor to take a CASCache instead of a Context
The Context was only used to obtain a reference to the CASCache and set the unused cas_directory field.
Diffstat (limited to 'tests/artifactcache')
-rw-r--r--tests/artifactcache/push.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/artifactcache/push.py b/tests/artifactcache/push.py
index be6293cf4..746884e29 100644
--- a/tests/artifactcache/push.py
+++ b/tests/artifactcache/push.py
@@ -225,7 +225,7 @@ def _test_push_directory(user_config_file, project_dir, artifact_dir, artifact_d
if cas.has_push_remotes():
# Create a CasBasedDirectory from local CAS cache content
- directory = CasBasedDirectory(context, ref=artifact_digest)
+ directory = CasBasedDirectory(context.artifactcache.cas, ref=artifact_digest)
# Push the CasBasedDirectory object
cas.push_directory(project, directory)