From: Alan T. DeKok Date: Tue, 30 Jan 2018 15:56:34 +0000 (-0500) Subject: show the line number where the tests failed X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2d720aa4055829f914894d5496659e306c1d2ae7;p=thirdparty%2Ffreeradius-server.git show the line number where the tests failed --- diff --git a/src/tests/modules/unit_test_module.conf b/src/tests/modules/unit_test_module.conf index b11863af612..2bfdb3a906f 100644 --- a/src/tests/modules/unit_test_module.conf +++ b/src/tests/modules/unit_test_module.conf @@ -49,14 +49,13 @@ server default { policy { test_pass { update control { - &Tmp-String-8 := "%{expr:%{%{control:Tmp-String-8}:-0} + 1}" &Auth-Type := Accept } } test_fail { update reply { - &Reply-Message := "fail %{%{control:Tmp-String-8}:-0}" + &Reply-Message += "Failure in test at line %{interpreter:..line}" } reject }