#20 fix: use right quotes in json output 22/head
authorAndrew Petelin <adrianopol@gmail.com>
Sun, 7 Jul 2019 19:24:41 +0000 (22:24 +0300)
committerAndrew Petelin <adrianopol@gmail.com>
Sun, 7 Jul 2019 19:24:41 +0000 (22:24 +0300)
kconfig-hardened-check.py

index 7ec7a4b58c641e3f92c22c9c439ae8eb372f74e8..a7a7d9cf05df6b867ed03c1c5052590a3e8460dd 100755 (executable)
@@ -40,6 +40,7 @@ import sys
 from argparse import ArgumentParser
 from collections import OrderedDict
 import re
+import json
 
 debug_mode = False  # set it to True to print the unknown options from the config
 json_mode = False   # if True, print results in JSON format
@@ -381,7 +382,7 @@ def print_checklist(checklist, with_results):
             if with_results:
                 opt.append(o.result)
             opts.append(opt)
-        print(opts)
+        print(json.dumps(opts))
         return
 
     # header