validate:launcher: Add a way to say that a known issues can happen several times

This commit is contained in:
Thibault Saunier 2019-03-21 10:01:14 -03:00 committed by Thibault Saunier
parent ba69336bf8
commit 28d413f059

View file

@ -887,7 +887,8 @@ class GstValidateTest(Test):
break
if found is not None:
expected_issues.remove(found)
if not found.get('can-happen-several-times', False):
expected_issues.remove(found)
if report['level'] == 'critical':
if found.get('sometimes', True) and isinstance(expected_retcode, list):
expected_retcode.append(18)