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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
erp5
Commits
908ad14c
Commit
908ad14c
authored
Sep 08, 2011
by
Arnaud Fontaine
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Execution with a range of users should follow --max-errors as well
parent
4b39b58d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
erp5/util/benchmark/performance_tester.py
erp5/util/benchmark/performance_tester.py
+9
-7
No files found.
erp5/util/benchmark/performance_tester.py
100644 → 100755
View file @
908ad14c
...
@@ -277,26 +277,28 @@ class PerformanceTester(object):
...
@@ -277,26 +277,28 @@ class PerformanceTester(object):
return
((),
0
)
return
((),
0
)
def
run
(
self
):
def
run
(
self
):
error_message_set
,
exit_status
=
(),
0
error_message_set
,
exit_status
=
set
(),
0
self
.
preRun
()
self
.
preRun
()
if
isinstance
(
self
.
_argument_namespace
.
users
,
tuple
):
if
isinstance
(
self
.
_argument_namespace
.
users
,
tuple
):
min_user_number
,
max_user_number
=
self
.
_argument_namespace
.
users
min_user_number
,
max_user_number
=
self
.
_argument_namespace
.
users
repeat_counter
=
0
repeat_counter
=
0
e
xit_with_error
=
False
e
rror_counter
=
0
while
(
repeat_counter
!=
self
.
_argument_namespace
.
repeat_range
and
while
(
repeat_counter
!=
self
.
_argument_namespace
.
repeat_range
and
not
exit_with_erro
r
):
error_counter
!=
self
.
_argument_namespace
.
max_error_numbe
r
):
current_user_number
=
min_user_number
current_user_number
=
min_user_number
while
True
:
while
True
:
error_message_set
,
exit_status
=
\
current_
error_message_set
,
exit_status
=
\
self
.
_run_constant
(
current_user_number
,
repeat_counter
)
self
.
_run_constant
(
current_user_number
,
repeat_counter
)
if
exit_status
!=
0
:
if
exit_status
!=
0
:
exit_with_error
=
True
error_counter
+=
1
break
error_message_set
.
update
(
current_error_message_set
)
elif
current_user_number
==
max_user_number
:
if
(
current_user_number
==
max_user_number
or
error_counter
==
self
.
_argument_namespace
.
max_error_number
):
break
break
current_user_number
=
\
current_user_number
=
\
...
...
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