mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-29 21:21:12 +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
|
# Make sure that action end is taken into account when checking if process
|
||||||
# is updating
|
# is updating
|
||||||
test.position += 1
|
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':
|
elif obj_type == 'report':
|
||||||
test.add_report(obj)
|
test.add_report(obj)
|
||||||
elif obj_type == 'skip-test':
|
elif obj_type == 'skip-test':
|
||||||
|
|
Loading…
Reference in a new issue