Commit 940eb439 authored by Arnaud Fontaine's avatar Arnaud Fontaine

Open ERP5 main page before each test suite to avoid side effects for subsequent calls

If  a test  suite  fails  with a  Zope  error, then  'main_form'  will not  be
available for the  next test suite. This also allows to  assume that each test
suite will be ran from ERP5 main page.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk/utils@46026 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent dee188f8
......@@ -51,6 +51,8 @@ class BenchmarkProcess(multiprocessing.Process):
# Initialized when running the test
self._browser = None
self._current_repeat = 1
# TODO: Per target error counter instead of global one?
self._error_counter = 0
super(BenchmarkProcess, self).__init__(*args, **kwargs)
......@@ -75,6 +77,7 @@ class BenchmarkProcess(multiprocessing.Process):
result.enterSuite(target.__name__)
try:
self._browser.open()
target(result, self._browser)
except StopIteration:
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