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
Paul Graydon
erp5
Commits
fc0b9775
Commit
fc0b9775
authored
Mar 20, 2020
by
Kazuhiko Shiozaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
scalability: rename serial-test -> serialise-test.
parent
608391f8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
erp5/util/scalability/runScalabilityTestSuite.py
erp5/util/scalability/runScalabilityTestSuite.py
+4
-4
erp5/util/testnode/ScalabilityTestRunner.py
erp5/util/testnode/ScalabilityTestRunner.py
+3
-3
No files found.
erp5/util/scalability/runScalabilityTestSuite.py
View file @
fc0b9775
...
...
@@ -143,7 +143,7 @@ class ScalabilityLauncher(object):
metavar
=
'SITE_AVAILABILITY_URL'
,
help
=
'Url to check instance availability'
)
parser
.
add_argument
(
'--serial-test'
,
parser
.
add_argument
(
'--serial
ise
-test'
,
metavar
=
'SERIAL_TEST'
,
action
=
'store_true'
,
help
=
'Without this option, all test methods are invoked in parallel'
)
...
...
@@ -240,7 +240,7 @@ class ScalabilityLauncher(object):
instance_url
=
self
.
__argumentNamespace
.
instance_url
metric_url
=
self
.
__argumentNamespace
.
metric_url
site_availability_url
=
self
.
__argumentNamespace
.
site_availability_url
serial
_test
=
self
.
__argumentNamespace
.
serial
_test
serial
ise_test
=
self
.
__argumentNamespace
.
serialise
_test
# To take metrics
metric_thread_stop_event
=
threading
.
Event
()
...
...
@@ -311,12 +311,12 @@ class ScalabilityLauncher(object):
# Launch command
test_thread
=
TestThread
(
process_manager
,
command
,
self
.
log
,
env
=
exec_env
)
test_thread
.
start
()
if
serial_test
:
if
serial
ise
_test
:
self
.
log
(
"Going to sleep for %s seconds."
%
str
(
test_duration
))
test_thread
.
join
(
test_duration
)
if
test_thread
.
is_alive
():
process_manager
.
killPreviousRun
()
if
not
serial_test
:
if
not
serial
ise
_test
:
# Sleep
self
.
log
(
"Going to sleep for %s seconds."
%
str
(
max_test_duration
))
time
.
sleep
(
max_test_duration
)
...
...
erp5/util/testnode/ScalabilityTestRunner.py
View file @
fc0b9775
...
...
@@ -397,7 +397,7 @@ Require valid-user
self
.
frontend_address
=
configuration
.
get
(
"frontend-address"
)
self
.
instance_software_release
=
configuration
.
get
(
'instance-software-release'
)
self
.
use_existing_setup
=
self
.
instance_name
is
not
None
and
self
.
frontend_address
is
not
None
self
.
serial
_test
=
configuration
.
get
(
'serial
-test'
,
False
)
self
.
serial
ise_test
=
configuration
.
get
(
'serialise
-test'
,
False
)
node_test_suite
.
edit
(
configuration_list
=
configuration_list
)
self
.
launcher_nodes_computer_guid
=
test_configuration
[
'launcher_nodes_computer_guid'
]
...
...
@@ -654,8 +654,8 @@ Require valid-user
"--metric-url"
,
metric_url
,
"--site-availability-url"
,
site_availability_url
,
]
if
self
.
serial_test
:
command
.
append
(
'--serial-test'
)
if
self
.
serial
ise
_test
:
command
.
append
(
'--serial
ise
-test'
)
logger
.
info
(
"Running test case..."
)
test_thread
=
TestThread
(
self
.
testnode
.
process_manager
,
command
,
logger
.
info
,
env
=
self
.
exec_env
)
test_thread
.
start
()
...
...
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