Commit 3d88c5d4 authored by Jürg Billeter's avatar Jürg Billeter
Browse files

tests/testutils: Use Context for artifact cache creation

parent b8f920e2
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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