summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJonathan Maw <jonathan.maw@codethink.co.uk>2018-08-16 18:18:21 +0100
committerJonathan Maw <jonathan.maw@codethink.co.uk>2018-08-20 13:36:02 +0100
commitd9507a9e55f1f9350305ed549947bb2400d5680b (patch)
tree7c7b8c457b5b8c5256135036bba52dd0d927f1c8 /tests
parent1f88a1e9a3d0b9340b8b7180fb1ea27ddb94084d (diff)
downloadbuildstream-d9507a9e55f1f9350305ed549947bb2400d5680b.tar.gz
Fix get_cache_size to store it in the ArtifactCache, not the context
Diffstat (limited to 'tests')
-rw-r--r--tests/testutils/artifactshare.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/testutils/artifactshare.py b/tests/testutils/artifactshare.py
index 76b729e33..05e87a499 100644
--- a/tests/testutils/artifactshare.py
+++ b/tests/testutils/artifactshare.py
@@ -140,6 +140,7 @@ class ArtifactShare():
return statvfs_result(f_blocks=self.total_space,
f_bfree=self.free_space - repo_size,
+ f_bavail=self.free_space - repo_size,
f_bsize=1)
@@ -156,4 +157,4 @@ def create_artifact_share(directory, *, total_space=None, free_space=None):
share.close()
-statvfs_result = namedtuple('statvfs_result', 'f_blocks f_bfree f_bsize')
+statvfs_result = namedtuple('statvfs_result', 'f_blocks f_bfree f_bsize f_bavail')