Commit 08bd7883 authored by Grégory Wisniewski's avatar Grégory Wisniewski

Report exception when the import fails in perfs benchmark.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2455 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent e21d0349
...@@ -4,6 +4,7 @@ import os ...@@ -4,6 +4,7 @@ import os
import sys import sys
import platform import platform
import datetime import datetime
import traceback
from time import time from time import time
from ZODB.FileStorage import FileStorage from ZODB.FileStorage import FileStorage
...@@ -48,7 +49,12 @@ class ImportBenchmark(BenchmarkRunner): ...@@ -48,7 +49,12 @@ class ImportBenchmark(BenchmarkRunner):
# import datafs # import datafs
neo.start() neo.start()
try: try:
return self.buildReport(*self.runImport(neo)) try:
return self.buildReport(*self.runImport(neo))
except:
summary = 'Perf : import failed'
report = ''.join(traceback.format_exc())
return summary, report
finally: finally:
neo.stop() neo.stop()
......
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