From: Philippe Antoine Date: Fri, 20 Mar 2020 08:38:22 +0000 (+0100) Subject: framework: warns on different type between yaml and json X-Git-Tag: suricata-6.0.4~319 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a1ede7b2d6a760d94d0b7d8d964367808d7d67d9;p=thirdparty%2Fsuricata-verify.git framework: warns on different type between yaml and json --- diff --git a/run.py b/run.py index 2c3197f84..32f651e64 100755 --- a/run.py +++ b/run.py @@ -357,6 +357,9 @@ class FilterCheck: else: val = find_value(key, event) if val != expected: + if str(val) == str(expected): + print("Different types but same string", type(val), val, type(expected), expected) + return False return False return True