1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-30 07:43:03 +04:00

Made the crude ability less crude.

This commit is contained in:
Roman Donchenko
2013-07-09 18:57:22 +04:00
parent 215b3e749f
commit 5b2dc26f2c
2 changed files with 13 additions and 6 deletions
+6 -6
View File
@@ -14,13 +14,13 @@ class TestInfo(object):
self.value_param = xmlnode.getAttribute("value_param")
self.type_param = xmlnode.getAttribute("type_param")
custom_status = xmlnode.getAttribute("custom_status")
failures = xmlnode.getElementsByTagName("failure")
if len(failures) > 0:
if any("No equivalent implementation" in f.getAttribute("message")
for f in failures):
self.status = "notimpl"
else:
self.status = "failed"
if len(custom_status) > 0:
self.status = custom_status
elif len(failures) > 0:
self.status = "failed"
else:
self.status = xmlnode.getAttribute("status")