validate:launcher: Make sure to check string when verifying expected failures

The value can potentially be None and we should handle that
This commit is contained in:
Thibault Saunier 2016-11-29 14:47:35 -03:00
parent acfdd04e01
commit 2959af0761

View file

@ -728,7 +728,7 @@ class GstValidateTest(Test):
del expected_failure[key]
for key, value in list(report.items()):
if key in expected_failure:
if not re.findall(expected_failure[key], value):
if not re.findall(expected_failure[key], str(value)):
return False
expected_failure.pop(key)