mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 00:01:23 +00:00
validate:launcher: Fix the 'can-happen-several-times' known issue field
This commit is contained in:
parent
1f68027942
commit
2153d82f34
1 changed files with 9 additions and 7 deletions
|
@ -929,17 +929,19 @@ class GstValidateTest(Test):
|
|||
|
||||
return value
|
||||
|
||||
def report_matches_expected_issues(self, report, expected_issues):
|
||||
def report_matches_expected_issues(self, report, expected_issue):
|
||||
for key in ['bug', 'bugs', 'sometimes']:
|
||||
if key in expected_issues:
|
||||
del expected_issues[key]
|
||||
if key in expected_issue:
|
||||
del expected_issue[key]
|
||||
for key, value in list(report.items()):
|
||||
if key in expected_issues:
|
||||
if not re.findall(expected_issues[key], str(value)):
|
||||
if key in expected_issue:
|
||||
if not re.findall(expected_issue[key], str(value)):
|
||||
return False
|
||||
expected_issues.pop(key)
|
||||
expected_issue.pop(key)
|
||||
|
||||
return not bool(expected_issues)
|
||||
if "can-happen-several-times" in expected_issue:
|
||||
expected_issue.pop("can-happen-several-times")
|
||||
return not bool(expected_issue)
|
||||
|
||||
def check_reported_issues(self, expected_issues):
|
||||
ret = []
|
||||
|
|
Loading…
Reference in a new issue