Index: client/site_tests/graphics_O3DSelenium/graphics_O3DSelenium.py |
diff --git a/client/site_tests/graphics_O3DSelenium/graphics_O3DSelenium.py b/client/site_tests/graphics_O3DSelenium/graphics_O3DSelenium.py |
index 4c99289785a8b2ae0b575c238d41a44057f3187b..f88a4d9a165b46c452ce4815e789ebf167a56dd3 100644 |
--- a/client/site_tests/graphics_O3DSelenium/graphics_O3DSelenium.py |
+++ b/client/site_tests/graphics_O3DSelenium/graphics_O3DSelenium.py |
@@ -68,16 +68,16 @@ class graphics_O3DSelenium(cros_ui_test.UITest): |
# Find out total tests. |
report = re.findall(r"([0-9]+) tests run.", result.stdout) |
if not report: |
- return error.TestFail('Output missing: total test number unknown!') |
+ raise error.TestFail('Output missing: total test number unknown!') |
total = int(report[-1]) |
# Find out failures. |
report = re.findall(r"([0-9]+) errors.", result.stdout) |
if not report: |
- return error.TestFail('Output missing: error number unknown!') |
+ raise error.TestFail('Output missing: error number unknown!') |
failures = int(report[-1]) |
report = re.findall(r"([0-9]+) failures.", result.stdout) |
if not report: |
- return error.TestFail('Output missing: failure number unknown!') |
+ raise error.TestFail('Output missing: failure number unknown!') |
failures += int(report[-1]) |
logging.info('RESULTS: %d out of %d tests failed!', failures, total) |