diff options
author | Richard Maw <richard.maw@codethink.co.uk> | 2018-11-14 16:56:24 +0000 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2018-11-19 20:54:30 +0100 |
commit | ba6c96e863ee7460f598d51869522a43be7d94c3 (patch) | |
tree | 23ef22fba979474e4cfadd1bdc66843eec0296d0 /tests/artifactcache | |
parent | d4f1218495fc883b2178c8ee2cf41914d445c09d (diff) | |
download | buildstream-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.py | 2 |
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) |