diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/buildtool/graph_traverser/graph_traverser_remote.test.cpp | 8 | ||||
-rw-r--r-- | test/utils/hermeticity/test_storage_config.hpp | 2 |
2 files changed, 9 insertions, 1 deletions
diff --git a/test/buildtool/graph_traverser/graph_traverser_remote.test.cpp b/test/buildtool/graph_traverser/graph_traverser_remote.test.cpp index 27e933de..5fa3bc95 100644 --- a/test/buildtool/graph_traverser/graph_traverser_remote.test.cpp +++ b/test/buildtool/graph_traverser/graph_traverser_remote.test.cpp @@ -13,6 +13,7 @@ // limitations under the License. #include "catch2/catch_test_macros.hpp" +#include "src/buildtool/execution_api/remote/config.hpp" #include "src/buildtool/storage/config.hpp" #include "src/buildtool/storage/storage.hpp" #include "test/buildtool/graph_traverser/graph_traverser.test.hpp" @@ -29,7 +30,12 @@ } StorageConfig::Builder builder; - auto config = builder.SetBuildRoot(cache_dir).Build(); + auto config = + builder.SetBuildRoot(cache_dir) + .SetRemoteExecutionArgs(RemoteExecutionConfig::RemoteAddress(), + RemoteExecutionConfig::PlatformProperties(), + RemoteExecutionConfig::DispatchList()) + .Build(); if (not config) { Logger::Log(LogLevel::Error, config.error()); std::exit(EXIT_FAILURE); diff --git a/test/utils/hermeticity/test_storage_config.hpp b/test/utils/hermeticity/test_storage_config.hpp index 0323f77e..e5346c75 100644 --- a/test/utils/hermeticity/test_storage_config.hpp +++ b/test/utils/hermeticity/test_storage_config.hpp @@ -31,6 +31,8 @@ class TestStorageConfig final { /// \brief Create a unique StorageConfig that has the build root in a new /// empty location. Uses TEST_TMPDIR environment variable to determine path /// to the location. + /// To be used only for local tests, as it does not know about remote + /// execution config. [[nodiscard]] static auto Create() noexcept -> TestStorageConfig { /** * Test must not assume the existence of a home directory, nor write |