| Index: ppapi/native_client/tools/browser_tester/browser_tester.py
|
| diff --git a/ppapi/native_client/tools/browser_tester/browser_tester.py b/ppapi/native_client/tools/browser_tester/browser_tester.py
|
| index 1617210f4d66000796af7bb00b3c29ba863b8089..68a99b15f74a15b621e0315c374c45a7808e60b4 100755
|
| --- a/ppapi/native_client/tools/browser_tester/browser_tester.py
|
| +++ b/ppapi/native_client/tools/browser_tester/browser_tester.py
|
| @@ -131,6 +131,11 @@ def BuildArgParser():
|
| parser.add_option('--nacl_exe_stderr', dest='nacl_exe_stderr',
|
| type='string', default=None,
|
| help='Redirect standard error of NaCl executable.')
|
| + parser.add_option('--expect_browser_process_crash',
|
| + dest='expect_browser_process_crash',
|
| + action='store_true',
|
| + help='Do not signal a failure if the browser process '
|
| + 'crashes')
|
|
|
| return parser
|
|
|
| @@ -251,6 +256,8 @@ def RunTestsOnce(url, options):
|
| try:
|
| while server.test_in_progress or options.interactive:
|
| if not browser.IsRunning():
|
| + if options.expect_browser_process_crash:
|
| + break
|
| listener.ServerError('Browser process ended during test '
|
| '(return code %r)' % browser.GetReturnCode())
|
| # If Chrome exits prematurely without making a single request to the
|
|
|