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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Rafael Monnerat
erp5
Commits
c4654f81
Commit
c4654f81
authored
Mar 19, 2018
by
Roque
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
scalability: destroy old instances before run new tests
parent
9180f343
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
erp5/util/testnode/ScalabilityTestRunner.py
erp5/util/testnode/ScalabilityTestRunner.py
+3
-4
No files found.
erp5/util/testnode/ScalabilityTestRunner.py
View file @
c4654f81
...
@@ -444,6 +444,9 @@ Require valid-user
...
@@ -444,6 +444,9 @@ Require valid-user
supply
,
supply
,
self
.
reachable_profile
,
self
.
reachable_profile
,
computer_guid
=
self
.
launcher_nodes_computer_guid
[
0
])
computer_guid
=
self
.
launcher_nodes_computer_guid
[
0
])
# Delete old instances
logger
.
info
(
"Destroying old requested instances"
)
self
.
slapos_communicator
.
requestInstanceDestroy
(
self
.
instance_title
)
# Ask for SR installation
# Ask for SR installation
for
computer_guid
in
self
.
involved_nodes_computer_guid
:
for
computer_guid
in
self
.
involved_nodes_computer_guid
:
self
.
_prepareSlapOS
(
self
.
reachable_profile
,
computer_guid
)
self
.
_prepareSlapOS
(
self
.
reachable_profile
,
computer_guid
)
...
@@ -693,10 +696,6 @@ Require valid-user
...
@@ -693,10 +696,6 @@ Require valid-user
error_message
=
"Error in communication with master: "
+
str
(
e
)
error_message
=
"Error in communication with master: "
+
str
(
e
)
break
break
# Delete old instances
logger
.
info
(
"Destroying requested instances"
)
self
.
slapos_communicator
.
requestInstanceDestroy
(
self
.
instance_title
)
# If error appears then that's a test failure.
# If error appears then that's a test failure.
if
error_message
:
if
error_message
:
logger
.
info
(
"There was an error during the testsuite run: "
+
str
(
error_message
))
logger
.
info
(
"There was an error during the testsuite run: "
+
str
(
error_message
))
...
...
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