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
amrani
erp5
Commits
5e9050d6
Commit
5e9050d6
authored
Sep 06, 2013
by
Benjamin Blanc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
scalability: correct warming up procedure
parent
2c627797
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
5 deletions
+12
-5
erp5/util/scalability/runScalabilityTestSuite.py
erp5/util/scalability/runScalabilityTestSuite.py
+12
-5
No files found.
erp5/util/scalability/runScalabilityTestSuite.py
View file @
5e9050d6
...
@@ -300,9 +300,7 @@ class ScalabilityLauncher(object):
...
@@ -300,9 +300,7 @@ class ScalabilityLauncher(object):
# Do not run a test while there are pending activities
# Do not run a test while there are pending activities
waitFor0PendingActivities
(
self
.
__argumentNamespace
.
erp5_url
,
self
.
log
)
waitFor0PendingActivities
(
self
.
__argumentNamespace
.
erp5_url
,
self
.
log
)
# Get the number of documents present before running the test.
previous_document_number
=
0
previous_document_number
=
getCreatedDocumentNumberFromERP5
(
self
.
__argumentNamespace
.
erp5_url
,
self
.
log
)
self
.
log
(
"previous_document_number: %d"
%
previous_document_number
)
self
.
log
(
"Test Case %s is running..."
%
(
current_test
.
title
))
self
.
log
(
"Test Case %s is running..."
%
(
current_test
.
title
))
try
:
try
:
...
@@ -319,7 +317,7 @@ class ScalabilityLauncher(object):
...
@@ -319,7 +317,7 @@ class ScalabilityLauncher(object):
self
.
log
(
"user_number: %s"
%
str
(
user_number
))
self
.
log
(
"user_number: %s"
%
str
(
user_number
))
# WARMING UP
# WARMING UP
self
.
log
(
"Warming up run.. for
6
0s"
)
self
.
log
(
"Warming up run.. for
18
0s"
)
# Generate commands to run
# Generate commands to run
command_list
=
[]
command_list
=
[]
user_index
=
0
user_index
=
0
...
@@ -344,12 +342,20 @@ class ScalabilityLauncher(object):
...
@@ -344,12 +342,20 @@ class ScalabilityLauncher(object):
self
.
log
(
"command: %s"
%
str
(
command
))
self
.
log
(
"command: %s"
%
str
(
command
))
tester_process_list
.
append
(
subprocess
.
Popen
(
command
))
tester_process_list
.
append
(
subprocess
.
Popen
(
command
))
# Sleep
# Sleep
time
.
sleep
(
6
0
)
time
.
sleep
(
18
0
)
# Stop
# Stop
for
tester_process
in
tester_process_list
:
for
tester_process
in
tester_process_list
:
tester_process
.
send_signal
(
signal
.
SIGINT
)
tester_process
.
send_signal
(
signal
.
SIGINT
)
self
.
log
(
"%s signal send to tester"
%
str
(
signal
.
SIGINT
))
# /WARMING UP
# /WARMING UP
# Wait for 0 activities
waitFor0PendingActivities
(
self
.
__argumentNamespace
.
erp5_url
,
self
.
log
)
# Get the number of documents present before running the test.
previous_document_number
=
getCreatedDocumentNumberFromERP5
(
self
.
__argumentNamespace
.
erp5_url
,
self
.
log
)
self
.
log
(
"previous_document_number: %d"
%
previous_document_number
)
self
.
log
(
"test_duration: %ss"
%
str
(
test_duration
))
self
.
log
(
"test_duration: %ss"
%
str
(
test_duration
))
# Generate commands to run
# Generate commands to run
...
@@ -383,6 +389,7 @@ class ScalabilityLauncher(object):
...
@@ -383,6 +389,7 @@ class ScalabilityLauncher(object):
# Stop
# Stop
for
tester_process
in
tester_process_list
:
for
tester_process
in
tester_process_list
:
tester_process
.
send_signal
(
signal
.
SIGINT
)
tester_process
.
send_signal
(
signal
.
SIGINT
)
self
.
log
(
"%s signal send to tester"
%
str
(
signal
.
SIGINT
))
# Ok
# Ok
error_count
=
0
error_count
=
0
...
...
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