Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Sebastian
erp5
Commits
4e61a570
Commit
4e61a570
authored
Sep 01, 2011
by
Arnaud Fontaine
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only RuntimeError are raised by the module and already logged and fix a typo
for flushing the results
parent
297fe7c8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
erp5/util/benchmark/process.py
erp5/util/benchmark/process.py
+8
-2
No files found.
erp5/util/benchmark/process.py
View file @
4e61a570
...
@@ -140,17 +140,23 @@ class BenchmarkProcess(multiprocessing.Process):
...
@@ -140,17 +140,23 @@ class BenchmarkProcess(multiprocessing.Process):
while
self
.
_current_repeat
!=
(
self
.
_argument_namespace
.
repeat
+
1
):
while
self
.
_current_repeat
!=
(
self
.
_argument_namespace
.
repeat
+
1
):
self
.
_logger
.
info
(
"Iteration: %d"
%
self
.
_current_repeat
)
self
.
_logger
.
info
(
"Iteration: %d"
%
self
.
_current_repeat
)
self
.
runBenchmarkSuiteList
(
result
)
self
.
runBenchmarkSuiteList
(
result
)
self
.
_current_repeat
+=
1
if
not
self
.
_current_repeat
%
RESULT_NUMBER_BEFORE_FLUSHING
:
if
not
self
.
_current_repeat
%
RESULT_NUMBER_BEFORE_FLUSHING
:
result
.
flush
()
result
.
flush
()
self
.
_current_repeat
+=
1
except
StopIteration
,
e
:
except
StopIteration
,
e
:
self
.
_logger
.
error
(
e
)
self
.
_logger
.
error
(
e
)
except
BaseException
,
e
:
except
RuntimeError
,
e
:
exit_msg
=
str
(
e
)
exit_msg
=
str
(
e
)
exit_status
=
1
exit_status
=
1
except
BaseException
,
e
:
exit_msg
=
traceback
.
format_exc
()
self
.
_logger
.
error
(
exit_msg
)
exit_status
=
2
self
.
_exit_msg_queue
.
put
(
exit_msg
)
self
.
_exit_msg_queue
.
put
(
exit_msg
)
sys
.
exit
(
exit_status
)
sys
.
exit
(
exit_status
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment