diff options
author | Oliver Reiche <oliver.reiche@huawei.com> | 2022-06-13 13:30:13 +0200 |
---|---|---|
committer | Oliver Reiche <oliver.reiche@huawei.com> | 2022-06-13 15:55:41 +0200 |
commit | e4bbf59415e610fc090572aff29cd20cdb9c41f8 (patch) | |
tree | 41f8f3e3fae12c6ea21e4ac18d124dad08e6748c /test/buildtool/execution_api/bazel/bazel_ac_client.test.cpp | |
parent | 47bb77c39199ae4842f79347de076a4534f7d310 (diff) | |
download | justbuild-e4bbf59415e610fc090572aff29cd20cdb9c41f8.tar.gz |
RemoteExecutionConfig: Keep global platform properties
... and cache endpoint address for rebuilding.
Diffstat (limited to 'test/buildtool/execution_api/bazel/bazel_ac_client.test.cpp')
-rw-r--r-- | test/buildtool/execution_api/bazel/bazel_ac_client.test.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/buildtool/execution_api/bazel/bazel_ac_client.test.cpp b/test/buildtool/execution_api/bazel/bazel_ac_client.test.cpp index 4a352a8e..ca97c7ce 100644 --- a/test/buildtool/execution_api/bazel/bazel_ac_client.test.cpp +++ b/test/buildtool/execution_api/bazel/bazel_ac_client.test.cpp @@ -23,9 +23,9 @@ auto CreateActionCacheEntry(BazelAcClient* ac_client, // run only the current test case. See issue#30 in // https://rnd-gitlab-eu-c.huawei.com/germany-research-center/intelligent-cloud-technologies-laboratory/9424510-devcloud-build-tool-technology-project-de/-/issues/30 TEST_CASE("Bazel internals: AC Client", "[!hide][execution_api]") { - auto const& info = RemoteExecutionConfig::Instance(); + auto const& info = RemoteExecutionConfig::RemoteAddress(); - BazelAcClient ac_client(info.Host(), info.Port()); + BazelAcClient ac_client(info->host, info->port); std::string instance_name{"remote-execution"}; std::string content("test"); @@ -34,7 +34,7 @@ TEST_CASE("Bazel internals: AC Client", "[!hide][execution_api]") { auto action_id = CreateAction(instance_name, {"echo", "-n", content}, {}, - ReadPlatformPropertiesFromEnv()); + RemoteExecutionConfig::PlatformProperties()); REQUIRE(action_id); // TODO(investigate): Upload fails due to permission issues. The BuildBarn |