diff options
author | bschubert15 <bschubert15@bloomberg.net> | 2020-03-18 10:28:56 +0000 |
---|---|---|
committer | Benjamin Schubert <contact@benschubert.me> | 2020-03-24 14:26:22 +0000 |
commit | 4922c0481898ac3d043be7782617d6eebd518b1e (patch) | |
tree | 2b8fe359e76021c0780da086dca293c128406672 /tests/testutils | |
parent | aec9deb3b7cd759ee35751b2e27fb54f7966b0b2 (diff) | |
download | buildstream-4922c0481898ac3d043be7782617d6eebd518b1e.tar.gz |
cascache.py: Create cas logs in the buildstream cache directory
This moves the cas logs outside of the cas directory. Since BuildStream
is responsible for creating and handling the logs, it should not be in
the cas directory.
Diffstat (limited to 'tests/testutils')
-rw-r--r-- | tests/testutils/artifactshare.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/testutils/artifactshare.py b/tests/testutils/artifactshare.py index 19c19131a..a15a7c27e 100644 --- a/tests/testutils/artifactshare.py +++ b/tests/testutils/artifactshare.py @@ -123,7 +123,9 @@ class ArtifactShare(BaseArtifactShare): self.sourcedir = os.path.join(self.repodir, "source_protos", "refs") os.makedirs(self.sourcedir) - self.cas = CASCache(self.repodir, casd=casd) + logdir = os.path.join(self.directory, "logs") if casd else None + + self.cas = CASCache(self.repodir, casd=casd, log_directory=logdir) self.quota = quota self.index_only = index_only |