From: Alan T. DeKok Date: Wed, 13 Sep 2017 18:33:58 +0000 (-0400) Subject: add test_fail X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df9556ed99698e99ecee5ff81ff952a0299c0d49;p=thirdparty%2Ffreeradius-server.git add test_fail which shows the line number of the block which called the test_fail policy --- diff --git a/src/tests/keywords/unit_test_module.conf b/src/tests/keywords/unit_test_module.conf index dd73d94b897..7f342a3b646 100644 --- a/src/tests/keywords/unit_test_module.conf +++ b/src/tests/keywords/unit_test_module.conf @@ -89,6 +89,12 @@ policy { } } } + + test_fail { + update reply { + Filter-Id += "Failure in test at line %{interpreter:..line}" + } + } } instantiate {