]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
print out more information on failure
authorAlan T. DeKok <aland@freeradius.org>
Tue, 27 Jun 2017 13:59:08 +0000 (09:59 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 27 Jun 2017 14:04:52 +0000 (10:04 -0400)
src/tests/keywords/redundant-redundant

index 294f53e49b1ed27a31b86b35b92f4bb152647ef0..bb802708d2a827d4aa2c7939c23adbb3b881f8cf 100644 (file)
@@ -40,30 +40,37 @@ redundant {
        ok
 }
 
+if (!ok) {
+       update reply {
+               Filter-Id := "did not return OK"
+       }
+       return
+}
+
 if (&Tmp-Integer-2 != 1) {
        update reply {
-               Filter-Id += 'Fail 3a'
+               Filter-Id += "Fail 3a - expected 1 got %{Tmp-Integer-2}"
        }
        return
 }
 
 if (&Tmp-Integer-3 != 1) {
        update reply {
-               Filter-Id += 'Fail 3b'
+               Filter-Id += "'Fail 3b - expected 1 got %{Tmp-Integer-3}"
        }
        return
 }
 
 if (&Tmp-Integer-4 != 1) {
        update reply {
-               Filter-Id += 'Fail 3c'
+               Filter-Id += "Fail 3c - expected 1 got %{Tmp-Integer-4}"
        }
        return
 }
 
 if (&Tmp-Integer-5 != 1) {
        update reply {
-               Filter-Id += 'Fail 3d'
+               Filter-Id += "Fail 3d - expected 1 got %{Tmp-Integer-5}"
        }
        return
 }