From 3d88c5d43d32d37be29875d145c1c1291262b934 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Billeter?= Date: Wed, 26 Sep 2018 10:20:08 +0100 Subject: tests/testutils: Use Context for artifact cache creation --- tests/testutils/artifactshare.py | 3 +-- 1 file changed, 1 insertion(+), 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 -- cgit v1.2.1