From: Peter van Dijk Date: Tue, 21 Oct 2025 15:18:58 +0000 (+0200) Subject: regression-tests.dnsdist: detect function absence and report it better X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F16333%2Fhead;p=thirdparty%2Fpdns.git regression-tests.dnsdist: detect function absence and report it better --- diff --git a/regression-tests.dnsdist/test_Lua.py b/regression-tests.dnsdist/test_Lua.py index d81054f2b3..3342fa2009 100644 --- a/regression-tests.dnsdist/test_Lua.py +++ b/regression-tests.dnsdist/test_Lua.py @@ -101,6 +101,7 @@ class TestLuaFrontendBindings(DNSDistTest): -- check that all these methods return nil on a non-existing entry functions = { 'getServer', 'getDNSCryptBind', 'getBind', 'getDOQFrontend', 'getDOH3Frontend', 'getDOHFrontend', 'getTLSFrontend'} for _, func in ipairs(functions) do + assert(_G[func] ~= nil, "function "..func.." not compiled in, cannot test") assert(_G[func](42) == nil, "function "..func.." did not return nil as expected") end