Merge pull request #14672 from FRRouting/mergify/bp/dev/9.1/pr-14663

tests: have unit-test check more paths for the grpc.so module (backport #14663)
This commit is contained in:
Donatas Abraitis 2023-10-27 21:57:34 +03:00 committed by GitHub
commit 73bac0e036
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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);