From d202e8f6051df5eb89d0f2eb1b9ac7109d204f56 Mon Sep 17 00:00:00 2001 From: Maksim Denisov Date: Tue, 2 Jul 2024 13:21:14 +0200 Subject: Remove HermeticLocalTestFixture ...and create StorageConfig and Storage in place if needed. --- test/utils/remote_execution/main-remote-execution.cpp | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'test/utils/remote_execution/main-remote-execution.cpp') diff --git a/test/utils/remote_execution/main-remote-execution.cpp b/test/utils/remote_execution/main-remote-execution.cpp index a691860a..091a8038 100644 --- a/test/utils/remote_execution/main-remote-execution.cpp +++ b/test/utils/remote_execution/main-remote-execution.cpp @@ -27,7 +27,6 @@ #include "src/buildtool/file_system/git_context.hpp" #include "src/buildtool/logging/log_level.hpp" #include "src/buildtool/logging/logger.hpp" -#include "src/buildtool/storage/config.hpp" #include "test/utils/logging/log_config.hpp" #include "test/utils/remote_execution/test_auth_config.hpp" #include "test/utils/test_env.hpp" @@ -68,24 +67,11 @@ void wait_for_grpc_to_shutdown() { return static_cast(RemoteExecutionConfig::RemoteAddress()); } -[[nodiscard]] auto ConfigureBuildRoot() -> bool { - auto cache_dir = FileSystemManager::GetCurrentDirectory() / "cache"; - if (not FileSystemManager::CreateDirectoryExclusive(cache_dir) or - not StorageConfig::Instance().SetBuildRoot(cache_dir)) { - return false; - } - return true; -} - } // namespace auto main(int argc, char* argv[]) -> int { ConfigureLogging(); - if (not ConfigureBuildRoot()) { - return EXIT_FAILURE; - } - if (not ConfigureRemoteExecution()) { return EXIT_FAILURE; } -- cgit v1.2.3