diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2016-11-04 12:31:19 -0700 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2016-11-04 13:06:27 -0700 |
commit | 3ba2ddd3a8b71ca7420fa10e9ad5a0415e197ca3 (patch) | |
tree | ff88e5daf3b7cb51cba32493432d306d04fc1ff6 /framework | |
parent | 7360914582e6f79d0652bea660c1b652bb5335eb (diff) |
framework/backends/json: Handle updating results without pid field
If it's not present make it an empty list.
Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
Tested-by: Brian Paul <brianp@vmware.com>
Diffstat (limited to 'framework')
-rw-r--r-- | framework/backends/json.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/framework/backends/json.py b/framework/backends/json.py index 17002ed58..55169191d 100644 --- a/framework/backends/json.py +++ b/framework/backends/json.py @@ -380,7 +380,10 @@ def _update_eight_to_nine(result): """ for test in compat.viewvalues(result['tests']): - test['pid'] = [test['pid']] + if 'pid' in test: + test['pid'] = [test['pid']] + else: + test['pid'] = [] result['results_version'] = 9 |