summaryrefslogtreecommitdiffstats
path: root/ppapi/native_client
diff options
context:
space:
mode:
authorncbray@chromium.org <ncbray@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-18 19:07:45 +0000
committerncbray@chromium.org <ncbray@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-18 19:07:45 +0000
commitbddcda3826554f691d3ea52bee82e823777e51a6 (patch)
tree185f48fec68b5d4cda744713b92161810ab05876 /ppapi/native_client
parent1fdb97b0c4837c0af22e678e48e411d272f1e9d0 (diff)
downloadchromium_src-bddcda3826554f691d3ea52bee82e823777e51a6.zip
chromium_src-bddcda3826554f691d3ea52bee82e823777e51a6.tar.gz
chromium_src-bddcda3826554f691d3ea52bee82e823777e51a6.tar.bz2
Retry tests more agressively in nacl_integration.
BUG=317890 Review URL: https://codereview.chromium.org/71863002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@235787 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/native_client')
-rwxr-xr-xppapi/native_client/tools/browser_tester/browser_tester.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/ppapi/native_client/tools/browser_tester/browser_tester.py b/ppapi/native_client/tools/browser_tester/browser_tester.py
index e22bfde..3f1da34 100755
--- a/ppapi/native_client/tools/browser_tester/browser_tester.py
+++ b/ppapi/native_client/tools/browser_tester/browser_tester.py
@@ -298,6 +298,8 @@ def RunTestsOnce(url, options):
else:
err += '\nThe test probably did not get a callback that it expected.'
listener.ServerError(err)
+ if not server.received_request:
+ raise RetryTest('Chrome hung before running the test.')
break
elif not options.interactive and HardTimeout(options.hard_timeout):
listener.ServerError('The test took over %.1f seconds. This is '
@@ -356,6 +358,17 @@ def Run(url, options):
while True:
try:
result = RunTestsOnce(url, options)
+ if result:
+ # Currently (2013/11/15) nacl_integration is fairly flaky and there is
+ # not enough time to look into it. Retry if the test fails for any
+ # reason. Note that in general this test runner tries to only retry
+ # when a known flake is encountered. (See the other raise
+ # RetryTest(..)s in this file.) This blanket retry means that those
+ # other cases could be removed without changing the behavior of the test
+ # runner, but it is hoped that this blanket retry will eventually be
+ # unnecessary and subsequently removed. The more precise retries have
+ # been left in place to preserve the knowledge.
+ raise RetryTest('HACK retrying failed test.')
break
except RetryTest:
# Only retry once.