diff options
author | Maksim Denisov <denisov.maksim@huawei.com> | 2024-07-05 16:49:45 +0200 |
---|---|---|
committer | Maksim Denisov <denisov.maksim@huawei.com> | 2024-07-22 17:01:13 +0200 |
commit | beb3faa6956b9bfd58d4ea6644a9b2987409aaba (patch) | |
tree | 9a1edee40bfe335717eb856237372d50127367ac /test/utils/remote_execution/main-remote-execution.cpp | |
parent | 30f2b4a215ebd4f9c0c491f41de6e8eb56ed3fdf (diff) | |
download | justbuild-beb3faa6956b9bfd58d4ea6644a9b2987409aaba.tar.gz |
Use HashFunction functionality via Instance()
...to track changes during refactoring easier.
Diffstat (limited to 'test/utils/remote_execution/main-remote-execution.cpp')
-rw-r--r-- | test/utils/remote_execution/main-remote-execution.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/utils/remote_execution/main-remote-execution.cpp b/test/utils/remote_execution/main-remote-execution.cpp index 3b4bc60e..05aec296 100644 --- a/test/utils/remote_execution/main-remote-execution.cpp +++ b/test/utils/remote_execution/main-remote-execution.cpp @@ -22,6 +22,7 @@ #include "catch2/catch_session.hpp" #include "catch2/catch_test_macros.hpp" #include "src/buildtool/compatibility/compatibility.hpp" +#include "src/buildtool/crypto/hash_function.hpp" #include "src/buildtool/execution_api/remote/config.hpp" #include "src/buildtool/file_system/file_system_manager.hpp" #include "src/buildtool/file_system/git_context.hpp" @@ -50,9 +51,9 @@ void ConfigureRemoteExecution() { std::exit(EXIT_FAILURE); } - HashFunction::SetHashType(Compatibility::IsCompatible() - ? HashFunction::JustHash::Compatible - : HashFunction::JustHash::Native); + HashFunction::Instance().SetHashType( + Compatibility::IsCompatible() ? HashFunction::JustHash::Compatible + : HashFunction::JustHash::Native); auto remote_config = TestRemoteConfig::ReadFromEnvironment(); if (not remote_config or remote_config->remote_address == std::nullopt) { |