Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(51)

Unified Diff: client/site_tests/graphics_O3DSelenium/graphics_O3DSelenium.py

Issue 6719025: graphics_o3dselenium: change all return error.* to raise error.* (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/autotest.git@master
Patch Set: Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698