summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2018-09-26 10:20:08 +0100
committerJürg Billeter <j@bitron.ch>2018-09-27 10:19:12 +0100
commit3d88c5d43d32d37be29875d145c1c1291262b934 (patch)
treeb468bd2417e81c11ced6af8b1ba57fc911eede00
parentb8f920e26b43de4a665f1241aed7ee6a9424689e (diff)
downloadbuildstream-3d88c5d43d32d37be29875d145c1c1291262b934.tar.gz
tests/testutils: Use Context for artifact cache creation
-rw-r--r--tests/testutils/artifactshare.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/testutils/artifactshare.py b/tests/testutils/artifactshare.py
index e3f709b0a..d95667227 100644
--- a/tests/testutils/artifactshare.py
+++ b/tests/testutils/artifactshare.py
@@ -11,7 +11,6 @@ from multiprocessing import Process, Queue
import pytest_cov
from buildstream import _yaml
-from buildstream._artifactcache.cascache import CASCache
from buildstream._artifactcache.casserver import create_server
from buildstream._context import Context
from buildstream._exceptions import ArtifactError
@@ -49,7 +48,7 @@ class ArtifactShare():
context = Context()
context.artifactdir = self.repodir
- self.cas = CASCache(context)
+ self.cas = context.artifactcache
self.total_space = total_space
self.free_space = free_space