mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +00:00
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 <jdenemar@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
09a95068fb
commit
dd7682dd12
@ -6,4 +6,4 @@ import json
|
|||||||
dec = json.JSONDecoder()
|
dec = json.JSONDecoder()
|
||||||
data, pos = dec.raw_decode(sys.stdin.read())
|
data, pos = dec.raw_decode(sys.stdin.read())
|
||||||
json.dump(data, sys.stdout, indent=2, separators=(',', ': '))
|
json.dump(data, sys.stdout, indent=2, separators=(',', ': '))
|
||||||
print("\n")
|
print("")
|
||||||
|
Loading…
Reference in New Issue
Block a user