diff options
Diffstat (limited to 'framework/core.py')
-rw-r--r-- | framework/core.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/framework/core.py b/framework/core.py index 73a238d0..0a8237de 100644 --- a/framework/core.py +++ b/framework/core.py @@ -460,7 +460,12 @@ class Test: status(result['result']) - json_writer.write_dict_item(path, result) + if 'subtest' in result and len(result['subtest'].keys()) > 1: + for test in result['subtest'].keys(): + result['result'] = result['subtest'][test] + json_writer.write_dict_item(path + '/' + test, result) + else: + json_writer.write_dict_item(path, result) else: status("dry-run") |