Browse Source

Merge "Fix list index out of range"

changes/86/723586/6
Zuul 11 months ago
committed by Gerrit Code Review
parent
commit
87bc59af5b
  1. 3
      validations_common/callback_plugins/validation_json.py

3
validations_common/callback_plugins/validation_json.py

@ -179,7 +179,8 @@ class CallbackModule(CallbackBase):
end_time = current_time()
time_elapsed = secondsToStr(time.time() - self.t0)
for result in self.results:
result['tasks'][-1]['task']['duration']['end'] = end_time
if len(result['tasks']) > 1:
result['tasks'][-1]['task']['duration']['end'] = end_time
result['play']['duration']['end'] = end_time
result['play']['duration']['time_elapsed'] = time_elapsed

Loading…
Cancel
Save