summaryrefslogtreecommitdiff
path: root/test/buildtool/storage
diff options
context:
space:
mode:
authorMaksim Denisov <denisov.maksim@huawei.com>2024-06-28 15:44:16 +0200
committerMaksim Denisov <denisov.maksim@huawei.com>2024-07-05 13:32:39 +0200
commit993245d862fcd44b1d8d404b970cbd774526ae2b (patch)
tree675efeae041524ca146be8adf7de2bb2886d9298 /test/buildtool/storage
parent849671f3d4ea482d208da4b5adf5c2c3556e25e4 (diff)
downloadjustbuild-993245d862fcd44b1d8d404b970cbd774526ae2b.tar.gz
Use StorageConfig with generation for initialization of Storage's generations
...instead of std::filesystem::path. StorageConfig is extended to return paths of Storage's parts.
Diffstat (limited to 'test/buildtool/storage')
-rw-r--r--test/buildtool/storage/large_object_cas.test.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/test/buildtool/storage/large_object_cas.test.cpp b/test/buildtool/storage/large_object_cas.test.cpp
index 45d428da..d5561dcd 100644
--- a/test/buildtool/storage/large_object_cas.test.cpp
+++ b/test/buildtool/storage/large_object_cas.test.cpp
@@ -100,13 +100,7 @@ class Tree final {
TEST_CASE_METHOD(HermeticLocalTestFixture,
"LargeObjectCAS: split a small tree",
"[storage]") {
- auto temp_dir =
- StorageConfig::Instance().CreateTypedTmpDir("large_object_cas");
- REQUIRE(temp_dir);
-
auto const& cas = Storage::Instance().CAS();
- LargeObjectCAS<true, ObjectType::Tree> const large_cas(
- cas, temp_dir->GetPath() / "root_1");
// Create a small tree:
using LargeTestUtils::Tree;
@@ -116,7 +110,7 @@ TEST_CASE_METHOD(HermeticLocalTestFixture,
auto const& [digest, path] = *small;
// Split must be successful:
- auto split_pack = large_cas.Split(digest);
+ auto split_pack = cas.SplitTree(digest);
REQUIRE(split_pack);
// The result must contain one blob digest: