GraphicsTest: Fix missing subtest entries.
am: fedc65750e
Change-Id: Ia3cd8474b697add9e641a9e01a432638d6e16a44
diff --git a/client/cros/graphics/graphics_utils.py b/client/cros/graphics/graphics_utils.py
index 35611f3..2a14e55 100644
--- a/client/cros/graphics/graphics_utils.py
+++ b/client/cros/graphics/graphics_utils.py
@@ -199,8 +199,6 @@
target = self._get_failure(name, subtest=subtest)
if name in target['names']:
target['names'].remove(name)
- if len(target['names']) == 0:
- self._failures.remove(target)
def _output_perf(self):
@@ -219,8 +217,9 @@
total_failures = 0
# Report subtests failures
for failure in self._failures:
- logging.debug('GraphicsTest failure: %s' % failure['names'])
- total_failures += len(failure['names'])
+ if len(failure['names']) > 0:
+ logging.debug('GraphicsTest failure: %s' % failure['names'])
+ total_failures += len(failure['names'])
if not self._test_failure_report_subtest:
continue