tests: have unit-test check more paths for the grpc.so module

Signed-off-by: Christian Hopps <chopps@labn.net>
(cherry picked from commit 8e630c2946)
This commit is contained in:
Christian Hopps 2023-10-26 21:39:13 -04:00 committed by Mergify
parent 010f8998d7
commit 715a17e17d

View File

@ -92,6 +92,17 @@ static void static_startup(void)
grpc_module = frrmod_load("grpc:50051", modpath.c_str(),
_err_print, 0);
}
if (!grpc_module) {
modpath = std::string(binpath) +
std::string("../../../lib/.libs");
grpc_module = frrmod_load("grpc:50051", modpath.c_str(),
_err_print, 0);
}
if (!grpc_module) {
modpath = std::string(binpath) + std::string("../../../lib");
grpc_module = frrmod_load("grpc:50051", modpath.c_str(),
_err_print, 0);
}
if (!grpc_module)
exit(1);