Commit 7cafcbd1 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

functional test should quit immediately if the browser is no longer running.

instead of waiting for (long) timeout.
parent 3f6f07d1
......@@ -310,6 +310,8 @@ class FunctionalTestRunner:
# TODO: here we could take a screenshot and display it in the report
# (maybe using data: scheme inside a <img>)
raise TimeoutError("Test took more than %s seconds" % self.timeout)
if self.browser.process.poll():
raise RuntimeError('Test browser is no longer running.')
except:
print("ERP5TypeFunctionalTestCase.test Exception: %r" % (sys.exc_info(),))
raise
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment