[Erp5-report] r45984 arnaud.fontaine - /erp5/trunk/utils/erp5.utils.benchmark/src/erp5/util...
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Aug 5 12:32:16 CEST 2011
Author: arnaud.fontaine
Date: Fri Aug 5 12:32:15 2011
New Revision: 45984
URL: http://svn.erp5.org?rev=45984&view=rev
Log:
Catch exceptions raised when instanciating the browser.
Modified:
erp5/trunk/utils/erp5.utils.benchmark/src/erp5/utils/benchmark/benchmark.py
Modified: erp5/trunk/utils/erp5.utils.benchmark/src/erp5/utils/benchmark/benchmark.py
URL: http://svn.erp5.org/erp5/trunk/utils/erp5.utils.benchmark/src/erp5/utils/benchmark/benchmark.py?rev=45984&r1=45983&r2=45984&view=diff
==============================================================================
--- erp5/trunk/utils/erp5.utils.benchmark/src/erp5/utils/benchmark/benchmark.py [utf8] (original)
+++ erp5/trunk/utils/erp5.utils.benchmark/src/erp5/utils/benchmark/benchmark.py [utf8] Fri Aug 5 12:32:15 2011
@@ -458,17 +458,12 @@ class BenchmarkProcess(multiprocessing.P
if self._argument_namespace.repeat != -1:
signal.signal(signal.SIGTERM, self.stopGracefully)
- try:
- self._browser = self.getBrowser(result_instance.log_file)
- except:
- self._logger.error(traceback.format_exc())
- raise
-
exit_status = 0
exit_msg = None
- # Create the result CSV file
try:
+ self._browser = self.getBrowser(result_instance.log_file)
+
with result_instance as result:
while self._current_repeat != (self._argument_namespace.repeat + 1):
self._logger.info("Iteration: %d" % self._current_repeat)
More information about the Erp5-report
mailing list