mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 03:31:05 +00:00
validate:launcher: Fix potential invalid index access
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1113>
This commit is contained in:
parent
b084abad79
commit
f2efd3b133
1 changed files with 2 additions and 1 deletions
|
@ -807,7 +807,8 @@ class GstValidateListener(socketserver.BaseRequestHandler, Loggable):
|
|||
# Make sure that action end is taken into account when checking if process
|
||||
# is updating
|
||||
test.position += 1
|
||||
test.actions_infos[-1]['execution-duration'] = obj['execution-duration']
|
||||
if test.actions_infos:
|
||||
test.actions_infos[-1]['execution-duration'] = obj['execution-duration']
|
||||
elif obj_type == 'report':
|
||||
test.add_report(obj)
|
||||
elif obj_type == 'skip-test':
|
||||
|
|
Loading…
Reference in a new issue