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
import sys
import platform
import datetime
import traceback
from time import time
from ZODB.FileStorage import FileStorage
......@@ -48,7 +49,12 @@ class ImportBenchmark(BenchmarkRunner):
# import datafs
neo.start()
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:
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