validate:launcher: Make sure to check string when verifying expected failures
authorThibault Saunier <tsaunier@gnome.org>
Tue, 29 Nov 2016 17:47:35 +0000 (14:47 -0300)
committerThibault Saunier <tsaunier@gnome.org>
Tue, 29 Nov 2016 17:47:35 +0000 (14:47 -0300)
The value can potentially be None and we should handle that

validate/launcher/baseclasses.py

index 4b55b13bfb1d307d64bef094f12cd9da4cca0b50..b12d3f4bc340d8bb2b460f279d7b09ed50d5ef5b 100644 (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)