diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2020-07-03 01:43:57 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2020-07-03 18:15:40 +0300 |
commit | 5224f471ca93ffc2c7a45fa05f5b0177dc48034e (patch) | |
tree | 4f9d1a3258f41e8495410944801d49ffab33dd22 /utils/raspberrypi | |
parent | 4321f6e96e89be0cdab5abff8aee6ab46ea44322 (diff) |
utils: raspberrypi: ctt: json_pretty_print: Make test output to stdout
The standalone test mode output to a file name "pretty.json". To make
the test mode more versatile, output to stdout instead. The user can
then decide how to use the output.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: David Plowman <david.plowman@raspberrypi.com>
Tested-by: David Plowman <david.plowman@raspberrypi.com>
Diffstat (limited to 'utils/raspberrypi')
-rw-r--r-- | utils/raspberrypi/ctt/ctt_pretty_print_json.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/raspberrypi/ctt/ctt_pretty_print_json.py b/utils/raspberrypi/ctt/ctt_pretty_print_json.py index 703a23fe..3de8c108 100644 --- a/utils/raspberrypi/ctt/ctt_pretty_print_json.py +++ b/utils/raspberrypi/ctt/ctt_pretty_print_json.py @@ -89,4 +89,5 @@ if __name__ == '__main__': input_filename = sys.argv[1] with open(input_filename, "r") as fin: - pretty_print_json(fin.read(), "pretty.json") + printer = JSONPrettyPrinter(sys.stdout) + printer.print(fin.read()) |