fix upload results to testrail
check attrib time
Change-Id: Iac6434419d524d050e92da91b6a1c2f8573179a4
Related-prod: PRODX-3456
diff --git a/update_testrail_xml/reporter.py b/update_testrail_xml/reporter.py
index e0c9dff..a88bea9 100644
--- a/update_testrail_xml/reporter.py
+++ b/update_testrail_xml/reporter.py
@@ -182,7 +182,7 @@
for child in root:
try:
if child.attrib['classname'] == case[0] and child.attrib['name'] == case[1]:
- if (child[0].tag == '0.000' or
+ if (child.attrib['time'] == '0.000' or
child[0].tag == 'error'):
child.clear()
except KeyError: