Print the type of a check in the json mode
authorAlexander Popov <alex.popov@linux.com>
Sat, 22 Jan 2022 21:34:01 +0000 (00:34 +0300)
committerAlexander Popov <alex.popov@linux.com>
Sat, 22 Jan 2022 21:34:01 +0000 (00:34 +0300)
kconfig_hardened_check/__init__.py

index f1de8195f258d88686bf9fab696f06aec8094716..3b19ce892e69036761f84f20dddf1900db6c24ff 100644 (file)
@@ -626,7 +626,7 @@ def print_checklist(mode, checklist, with_results):
     if mode == 'json':
         opts = []
         for o in checklist:
-            opt = ['CONFIG_'+o.name, o.expected, o.decision, o.reason]
+            opt = ['CONFIG_'+o.name, o.type, o.expected, o.decision, o.reason]
             if with_results:
                 opt.append(o.result)
             opts.append(opt)