summaryrefslogtreecommitdiff
path: root/test/buildtool/graph_traverser
diff options
context:
space:
mode:
authorPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2024-07-09 15:53:52 +0200
committerPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2024-07-16 17:51:12 +0200
commit917193d6a8b713b22dec08c018cca14e6ed1543f (patch)
treed63c71b5217a2a5298be935194f8e3bbd7a17a7a /test/buildtool/graph_traverser
parent69eef57f9b286a0f61cebedcfecd8dd7aa1125ce (diff)
downloadjustbuild-917193d6a8b713b22dec08c018cca14e6ed1543f.tar.gz
StorageConfig: Store also the execution backend description id
...such that it will be available to the TargetCache for sharing. Also, GC does not require remote execution information, so the logic for this subcommand is moved earlier in main.
Diffstat (limited to 'test/buildtool/graph_traverser')
-rw-r--r--test/buildtool/graph_traverser/graph_traverser_remote.test.cpp8
1 files changed, 7 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);