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
Leo Le Bouter
erp5
Commits
cc7c8b13
Commit
cc7c8b13
authored
Sep 05, 2013
by
Benjamin Blanc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
runScalabilityTestSuite: Fix user index and use new method name
parent
9839c04d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
116 additions
and
129 deletions
+116
-129
erp5/util/scalability/runScalabilityTestSuite.py
erp5/util/scalability/runScalabilityTestSuite.py
+111
-107
erp5/util/taskdistribution/__init__.py
erp5/util/taskdistribution/__init__.py
+5
-22
No files found.
erp5/util/scalability/runScalabilityTestSuite.py
View file @
cc7c8b13
...
...
@@ -289,10 +289,13 @@ class ScalabilityLauncher(object):
# Main loop
while
True
:
current_test
=
self
.
getRunningTest
()
if
current_test
==
None
:
self
.
log
(
"No Test Case Ready"
)
else
:
while
not
current_test
:
time
.
sleep
(
15
)
current_test
=
self
.
getRunningTest
()
error_count
=
1
# Do not run a test while there are pending activities
...
...
@@ -318,6 +321,7 @@ class ScalabilityLauncher(object):
# Generate commands to run
command_list
=
[]
user_index
=
0
for
test_suite
in
test_suite_list
:
command_list
.
append
([
tester_path
,
self
.
__argumentNamespace
.
erp5_url
,
...
...
@@ -330,7 +334,9 @@ class ScalabilityLauncher(object):
'--report-directory'
,
self
.
__argumentNamespace
.
log_path
,
'--repeat'
,
"%s"
%
str
(
MAX_DOCUMENTS
),
'--max-errors'
,
str
(
1000000
),
'--user-index'
,
str
(
user_index
),
])
user_index
+=
user_number
/
len
(
test_suite_list
)
# Launch
tester_process_list
=
[]
...
...
@@ -397,8 +403,6 @@ class ScalabilityLauncher(object):
duration
=
test_duration
)
self
.
log
(
"Test Case Stopped"
)
# Sleep between two loops
time
.
sleep
(
5
)
return
error_message_set
,
exit_status
def
main
():
...
...
erp5/util/taskdistribution/__init__.py
View file @
cc7c8b13
...
...
@@ -417,22 +417,6 @@ class TestResultProxyProxy(TestResultProxy):
"""
return
self
.
_retryRPC
(
'getRunningTestCase'
,
[
self
.
_test_result_path
])
def
cancelTestCase
(
self
,
test_result_line_path
):
"""
"""
return
self
.
_retryRPC
(
'cancelTestCase'
,
[
test_result_line_path
])
def
stopTestCase
(
self
,
test_result_line_path
):
"""
"""
return
self
.
_retryRPC
(
'stopTestCase'
,
[
test_result_line_path
])
class
ServerProxy
(
xmlrpclib
.
ServerProxy
):
def
__init__
(
self
,
*
args
,
**
kw
):
...
...
@@ -510,7 +494,6 @@ class TaskDistributionTool(RPCRetry):
class
TaskDistributor
(
RPCRetry
):
def
__init__
(
self
,
portal_url
,
retry_time
=
64
,
logger
=
None
):
if
logger
is
None
:
logger
=
null_logger
if
portal_url
is
None
:
...
...
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