Commit 4a182d11 by Andrew Petelin

#20 fix: use right quotes in json output

parent 3dc3f6e9
...@@ -40,6 +40,7 @@ import sys ...@@ -40,6 +40,7 @@ import sys
from argparse import ArgumentParser from argparse import ArgumentParser
from collections import OrderedDict from collections import OrderedDict
import re import re
import json
debug_mode = False # set it to True to print the unknown options from the config 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 json_mode = False # if True, print results in JSON format
...@@ -381,7 +382,7 @@ def print_checklist(checklist, with_results): ...@@ -381,7 +382,7 @@ def print_checklist(checklist, with_results):
if with_results: if with_results:
opt.append(o.result) opt.append(o.result)
opts.append(opt) opts.append(opt)
print(opts) print(json.dumps(opts))
return return
# header # header
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment