aboutsummaryrefslogtreecommitdiff
path: root/automated/linux/piglit/piglit_lava_parse.py
diff options
context:
space:
mode:
Diffstat (limited to 'automated/linux/piglit/piglit_lava_parse.py')
-rwxr-xr-xautomated/linux/piglit/piglit_lava_parse.py15
1 files changed, 14 insertions, 1 deletions
diff --git a/automated/linux/piglit/piglit_lava_parse.py b/automated/linux/piglit/piglit_lava_parse.py
index cb20657..32e8e2a 100755
--- a/automated/linux/piglit/piglit_lava_parse.py
+++ b/automated/linux/piglit/piglit_lava_parse.py
@@ -47,13 +47,26 @@ def natural_keys(text):
def print_results(filename, ignore_tests):
+ currentsuite = ''
with open(filename, 'r') as f:
piglit_results = json.loads(f.read())
for test in sorted(piglit_results['tests'].keys()):
if test in ignore_tests:
continue
+ testname_parts = test.split('@')
+ testname = testname_parts[-1].replace(' ', '_')
+ suitename = '@'.join(testname_parts[0:-1])
+
+ if currentsuite != suitename:
+ if currentsuite:
+ print('lava-test-set stop %s' % currentsuite)
+
+ currentsuite = suitename
+ print('lava-test-set start %s' % currentsuite)
+
result = map_result_to_lava(piglit_results['tests'][test]['result'])
- print("%s %s" % (test, result))
+ print("%s %s" % (testname, result))
+ print('lava-test-set stop %s' % currentsuite)
if __name__ == '__main__':