diff options
author | Maksim Denisov <denisov.maksim@huawei.com> | 2024-06-26 16:07:58 +0200 |
---|---|---|
committer | Maksim Denisov <denisov.maksim@huawei.com> | 2024-07-05 12:58:35 +0200 |
commit | 5bc6265b2ffe43370b4cddd0a9e4c09b059ef131 (patch) | |
tree | 63619c3d43f97c4ffa16feb9094fc8631620b164 /test/buildtool/file_system | |
parent | 3440784e94de51c95d3dcca8509f8e46b4722ee6 (diff) | |
download | justbuild-5bc6265b2ffe43370b4cddd0a9e4c09b059ef131.tar.gz |
Pass StorageConfig to git_repo and git_repo_remote
Diffstat (limited to 'test/buildtool/file_system')
-rw-r--r-- | test/buildtool/file_system/TARGETS | 1 | ||||
-rw-r--r-- | test/buildtool/file_system/git_repo.test.cpp | 10 |
2 files changed, 8 insertions, 3 deletions
diff --git a/test/buildtool/file_system/TARGETS b/test/buildtool/file_system/TARGETS index 880cc368..c202fa32 100644 --- a/test/buildtool/file_system/TARGETS +++ b/test/buildtool/file_system/TARGETS @@ -125,6 +125,7 @@ , ["@", "src", "src/buildtool/logging", "logging"] , ["@", "src", "src/utils/cpp", "atomic"] , ["@", "src", "src/utils/cpp", "hex_string"] + , ["@", "src", "src/buildtool/storage", "config"] , ["utils", "shell_quoting"] ] , "stage": ["test", "buildtool", "file_system"] diff --git a/test/buildtool/file_system/git_repo.test.cpp b/test/buildtool/file_system/git_repo.test.cpp index c5265aaf..94801dfe 100644 --- a/test/buildtool/file_system/git_repo.test.cpp +++ b/test/buildtool/file_system/git_repo.test.cpp @@ -29,6 +29,7 @@ #include "src/buildtool/file_system/git_repo.hpp" #include "src/buildtool/logging/log_level.hpp" #include "src/buildtool/logging/logger.hpp" +#include "src/buildtool/storage/config.hpp" #include "src/utils/cpp/atomic.hpp" #include "src/utils/cpp/hex_string.hpp" #include "test/utils/shell_quoting.hpp" @@ -418,7 +419,7 @@ TEST_CASE("Single-threaded fake repository operations -- batch 1", // fetch all with base refspecs REQUIRE(repo_fetch_all->LocalFetchViaTmpRepo( - *repo_path, std::nullopt, logger)); + StorageConfig::Instance(), *repo_path, std::nullopt, logger)); // check commit is there after fetch CHECK(*repo_fetch_all->CheckCommitExists(kRootCommit, logger)); @@ -437,7 +438,7 @@ TEST_CASE("Single-threaded fake repository operations -- batch 1", // fetch branch REQUIRE(repo_fetch_branch->LocalFetchViaTmpRepo( - *repo_path, "master", logger)); + StorageConfig::Instance(), *repo_path, "master", logger)); // check commit is there after fetch CHECK(*repo_fetch_branch->CheckCommitExists(kRootCommit, logger)); @@ -728,7 +729,10 @@ TEST_CASE("Multi-threaded fake repository operations", "[git_repo]") { REQUIRE(remote_repo->IsRepoFake()); // fetch all REQUIRE(remote_repo->LocalFetchViaTmpRepo( - *remote_repo_path, std::nullopt, logger)); + StorageConfig::Instance(), + *remote_repo_path, + std::nullopt, + logger)); } break; } }, |