diff options
author | Jürg Billeter <j@bitron.ch> | 2018-10-17 11:02:49 +0100 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2018-11-05 17:18:12 +0000 |
commit | 626d20aefb52d25d987c61f377cc1ce3172da8c3 (patch) | |
tree | 5a451d29e9c793ba86ded6a5867c1f3911bfd662 /tests/testutils | |
parent | e398f877ab2cb41e7fa531fd71ad9b503fbbedac (diff) | |
download | buildstream-626d20aefb52d25d987c61f377cc1ce3172da8c3.tar.gz |
Split up artifact cache and CAS cache
This changes CASCache from a subclass to a delegate object of
ArtifactCache. As the lower layer, CASCache no longer deals with
elements or projects.
Fixes #659.
Diffstat (limited to 'tests/testutils')
-rw-r--r-- | tests/testutils/artifactshare.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/testutils/artifactshare.py b/tests/testutils/artifactshare.py index a8af59905..02f76de90 100644 --- a/tests/testutils/artifactshare.py +++ b/tests/testutils/artifactshare.py @@ -13,7 +13,7 @@ import pytest_cov from buildstream import _yaml from buildstream._artifactcache.casserver import create_server from buildstream._context import Context -from buildstream._exceptions import ArtifactError +from buildstream._exceptions import CASError from buildstream._protos.build.bazel.remote.execution.v2 import remote_execution_pb2 @@ -48,7 +48,7 @@ class ArtifactShare(): context = Context() context.artifactdir = self.repodir - self.cas = context.artifactcache + self.cas = context.artifactcache.cas self.total_space = total_space self.free_space = free_space @@ -135,7 +135,7 @@ class ArtifactShare(): try: tree = self.cas.resolve_ref(artifact_key) return True - except ArtifactError: + except CASError: return False # close(): |