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

Unified Diff: content/test/gpu/gpu_tests/gpu_integration_test.py

Issue 2151983002: Adding logic to restart the browser if there is an exception (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adding exception logging on failure Created 4 years, 5 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 | content/test/gpu/gpu_tests/gpu_integration_test_unittest.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/gpu/gpu_tests/gpu_integration_test.py
diff --git a/content/test/gpu/gpu_tests/gpu_integration_test.py b/content/test/gpu/gpu_tests/gpu_integration_test.py
index 21a283be021fd1b200f1974ed6ae2319de4bd986..f44c41a28cf2ab1dc9a54a4800d0090804d49dd1 100644
--- a/content/test/gpu/gpu_tests/gpu_integration_test.py
+++ b/content/test/gpu/gpu_tests/gpu_integration_test.py
@@ -126,4 +126,10 @@ class GpuIntegrationTest(
raise NotImplementedError
def setUp(self):
- self.tab = self.browser.tabs[0]
+ try:
+ self.tab = self.browser.tabs[0]
+ except Exception:
+ # restart the browser to make sure a failure in a test doesn't
+ # propagate to the next test iteration.
+ logging.exception("Failure during browser startup")
+ self._RestartBrowser('failure in setup')
nednguyen 2016/07/21 18:01:55 I still think we should reraise after this, otherw
eyaich 2016/07/21 18:35:36 The failure is on the test prior, so the exception
nednguyen 2016/07/21 18:40:30 I think that we may still have case in which: tes
eyaich 2016/07/21 18:48:02 How would test N+1's setUp fail unless tab[0] wasn
nednguyen 2016/07/21 18:57:51 Note that all the communication between telemetry
eyaich 2016/07/21 19:04:09 Ok I agree that not reporting an error at all is w
« no previous file with comments | « no previous file | content/test/gpu/gpu_tests/gpu_integration_test_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698