mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-26 22:48:19 +00:00
Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Jeremy White <jwhite@codeweavers.com>
19 lines
516 B
Python
Executable File
19 lines
516 B
Python
Executable File
#!/usr/bin/env python
|
|
import sys
|
|
import json
|
|
|
|
num_tests = 0
|
|
for server in json.load(open(sys.argv[1])).values():
|
|
for test, result in server.items():
|
|
is_test = 0
|
|
for k, v in result.items():
|
|
if k[:8].lower() != 'behavior':
|
|
continue
|
|
is_test = 1
|
|
if v != 'OK' and v != 'INFORMATIONAL':
|
|
raise Exception('Invalid %s %s for test %s' % (k, v, test))
|
|
num_tests += is_test
|
|
if num_tests < 100:
|
|
raise Exception('Too few tests done %s' % num_tests)
|
|
print('Output report is fine')
|