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
alecs_myu
erp5
Commits
d85c6be9
Commit
d85c6be9
authored
Jun 13, 2013
by
Benjamin Blanc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update install code soft
parent
74c3277a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
8 deletions
+18
-8
erp5/util/testnode/ScalabilityTestRunner.py
erp5/util/testnode/ScalabilityTestRunner.py
+18
-8
No files found.
erp5/util/testnode/ScalabilityTestRunner.py
View file @
d85c6be9
...
...
@@ -62,18 +62,15 @@ class ScalabilityTestRunner():
# 'COMPY' : ['soft_path1.cfg'], ... }
self
.
remaining_software_installation_grid
=
{}
# Protection to prevent installation of softwares after checking
self
.
still_supply_to_request
=
True
self
.
authorize_supply
=
True
def
checkingSoftwareGrid
(
self
):
self
.
still_supply_to_request
=
False
# Here we can
def
_prepareSlapOS
(
self
,
software_path
,
computer_guid
,
create_partition
=
0
):
# create_partition is kept for compatibility
"""
A proxy to supply : Install software a software on a specific node
"""
if
self
.
still_supply_to_request
==
True
:
if
self
.
authorize_supply
==
True
:
if
not
(
computer_guid
in
self
.
remaining_software_installation_grid
):
# Add computer_guid to the grid if it isn't
self
.
remaining_software_installation_grid
[
computer_guid
]
=
[]
...
...
@@ -82,7 +79,7 @@ class ScalabilityTestRunner():
# Here make a request via slapos controler ?
return
{
'status_code'
:
0
}
else
:
raise
ValueError
(
"Too late to supply now. ('self.
still_supply_to_request
' is False)"
)
raise
ValueError
(
"Too late to supply now. ('self.
authorize_supply
' is False)"
)
def
prepareSlapOSForTestNode
(
self
,
test_node_slapos
=
None
):
"""
...
...
@@ -100,6 +97,12 @@ class ScalabilityTestRunner():
else
:
return
{
'status_code'
:
0
}
def
isRemainingSoftwareToInstall
(
self
):
print
self
.
remaining_software_installation_grid
return
False
# Here we can
def
prepareSlapOSForTestSuite
(
self
,
node_test_suite
):
"""
Install all testsuite's software
...
...
@@ -136,7 +139,14 @@ the current cluster configuration." %(node_test_suite.test_suite_title,))
for
software_path
in
software_path_list
:
for
computer_guid
in
self
.
involved_nodes_computer_guid
:
self
.
_prepareSlapOS
(
software_path
,
computer_guid
)
# TODO : change the line below
# From the line below we would not supply any more softwares
self
.
authorize_supply
=
False
# Here a loop while softwares are not all installed
while
isRemainingSoftwareToInstall
()
==
False
:
self
.
testnode
.
log
(
"Master testnode is waiting
\
for the end of all software installation."
)
time
.
sleep
(
4
)
return
{
'status_code'
:
0
}
def
_cleanUpNodesInformation
(
self
):
...
...
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