validate:launcher: Fix potential invalid index access

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1113>
This commit is contained in:
Thibault Saunier 2021-10-07 19:41:07 -03:00 committed by GStreamer Marge Bot
parent b084abad79
commit f2efd3b133

View file

@ -807,6 +807,7 @@ class GstValidateListener(socketserver.BaseRequestHandler, Loggable):
# Make sure that action end is taken into account when checking if process
# is updating
test.position += 1
if test.actions_infos:
test.actions_infos[-1]['execution-duration'] = obj['execution-duration']
elif obj_type == 'report':
test.add_report(obj)