From: Jiri Denemark Date: Wed, 27 Feb 2019 08:43:23 +0000 (+0100) Subject: cputest: Make sure generated files pass syntax-check X-Git-Tag: v5.2.0-rc1~375 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=dd7682dd12333b9fec63a112a0484e9391937041;p=thirdparty%2Flibvirt.git cputest: Make sure generated files pass syntax-check The tests/cputestdata/cpu-parse.sh would produce JSON files with QEMU replies which wouldn't pass syntax-check. Let's fix this by not emitting an extra new line after reformatting the JSON file. Signed-off-by: Jiri Denemark Reviewed-by: Ján Tomko --- diff --git a/tests/cputestdata/cpu-reformat.py b/tests/cputestdata/cpu-reformat.py index 2c7bbde262..fcc6b8ab41 100755 --- a/tests/cputestdata/cpu-reformat.py +++ b/tests/cputestdata/cpu-reformat.py @@ -6,4 +6,4 @@ import json dec = json.JSONDecoder() data, pos = dec.raw_decode(sys.stdin.read()) json.dump(data, sys.stdout, indent=2, separators=(',', ': ')) -print("\n") +print("")