From 5224f471ca93ffc2c7a45fa05f5b0177dc48034e Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Fri, 3 Jul 2020 01:43:57 +0300 Subject: 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 Reviewed-by: David Plowman Tested-by: David Plowman --- utils/raspberrypi/ctt/ctt_pretty_print_json.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'utils/raspberrypi/ctt') 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()) -- cgit v1.2.1