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
francois
erp5
Commits
ddc2048e
Commit
ddc2048e
authored
Aug 13, 2013
by
Benjamin Blanc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
scalability: runScalabilityTestSuite: Change the way to launch suite
Launch one tester per test.
parent
880bf167
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
8 deletions
+23
-8
erp5/util/scalability/runScalabilityTestSuite.py
erp5/util/scalability/runScalabilityTestSuite.py
+23
-8
No files found.
erp5/util/scalability/runScalabilityTestSuite.py
View file @
ddc2048e
...
...
@@ -356,11 +356,15 @@ class ScalabilityLauncher(object):
self
.
log
(
"user_number: %s"
%
str
(
user_number
))
self
.
log
(
"test_duration: %ss"
%
str
(
test_duration
))
command
=
[
tester_path
,
# Generate commands
command_list
=
[]
i
=
0
for
suite
in
test_suites
:
command_list
[
i
]
=
[
tester_path
,
self
.
__argumentNamespace
.
erp5_url
,
str
(
user_number
),
' '
.
join
(
test_suites
)
,
suite
,
'--benchmark-path-list'
,
benchmarks_path
,
'--users-file-path'
,
user_file_path
,
'--users-file'
,
user_file
,
...
...
@@ -368,13 +372,24 @@ class ScalabilityLauncher(object):
'--report-directory'
,
self
.
__argumentNamespace
.
log_path
,
'--repeat'
,
"%s"
%
str
(
MAX_DOCUMENTS
),
]
self
.
log
(
"command: %s"
%
str
(
command
))
tester_process
=
subprocess
.
Popen
(
command
)
i
+=
1
# Launch
tester_process_list
=
[]
for
i
in
range
(
i
,
len
(
command_list
)):
self
.
log
(
"command: %s"
%
str
(
command_list
[
i
]))
tester_process_list
[
i
]
=
subprocess
.
Popen
(
command_list
[
i
])
# Sleep
time
.
sleep
(
test_duration
)
tester_process
.
send_signal
(
signal
.
SIGINT
)
# Stop
for
i
in
range
(
i
,
len
(
tester_process_list
)):
tester_process_list
[
i
].
send_signal
(
signal
.
SIGINT
)
# Ok
error_count
=
0
except
:
self
.
log
(
"Error during tester call."
)
raise
ValueError
(
"Tester call failed"
)
...
...
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