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
Mikolaï Krol
erp5
Commits
d7ecedad
Commit
d7ecedad
authored
Jun 11, 2013
by
Benjamin Blanc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix (typo)
parent
40dd7a62
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
8 deletions
+6
-8
erp5/util/testnode/ScalabilityTestRunner.py
erp5/util/testnode/ScalabilityTestRunner.py
+4
-4
erp5/util/testnode/testnode.py
erp5/util/testnode/testnode.py
+2
-4
No files found.
erp5/util/testnode/ScalabilityTestRunner.py
View file @
d7ecedad
...
@@ -76,7 +76,7 @@ class ScalabilityTestRunner():
...
@@ -76,7 +76,7 @@ class ScalabilityTestRunner():
def
prepareSlapOSForTestNode
(
self
,
test_node_slapos
=
None
):
def
prepareSlapOSForTestNode
(
self
,
test_node_slapos
=
None
):
"""
"""
Install all softwares used to run tests (ex : launcher software)
We will build slapos software needed by the testnode itself,
"""
"""
software_path_list
=
[]
software_path_list
=
[]
software_path_list
.
append
(
self
.
testnode
.
config
.
get
(
"software_list"
))
software_path_list
.
append
(
self
.
testnode
.
config
.
get
(
"software_list"
))
...
@@ -88,7 +88,7 @@ class ScalabilityTestRunner():
...
@@ -88,7 +88,7 @@ class ScalabilityTestRunner():
def
prepareSlapOSForTestSuite
(
self
,
node_test_suite
):
def
prepareSlapOSForTestSuite
(
self
,
node_test_suite
):
"""
"""
Install all testsuite's software
s (on worker_nodes)
Install all testsuite's software
"""
"""
# In fact we just need to extract (by knowing the ipv6)
# In fact we just need to extract (by knowing the ipv6)
# softwares ipv6-url ( created during constructProfile(...) )
# softwares ipv6-url ( created during constructProfile(...) )
...
@@ -96,8 +96,8 @@ class ScalabilityTestRunner():
...
@@ -96,8 +96,8 @@ class ScalabilityTestRunner():
# TODO : extract software paths (ipv6+local suite path+password?) from node_test_suite
# TODO : extract software paths (ipv6+local suite path+password?) from node_test_suite
software_path_list
=
[]
software_path_list
=
[]
for
software_path
in
software_path_list
:
for
software_path
in
software_path_list
:
for
worker_node
in
self
.
worker
_nodes
:
for
involved_node
in
self
.
involved
_nodes
:
self
.
_prepareSlapOS
(
software_path
,
worker
_node
[
'computer_id'
])
self
.
_prepareSlapOS
(
software_path
,
involved
_node
[
'computer_id'
])
# TODO : change the line below
# TODO : change the line below
return
{
'status_code'
:
0
}
return
{
'status_code'
:
0
}
...
...
erp5/util/testnode/testnode.py
View file @
d7ecedad
...
@@ -333,12 +333,10 @@ branch = %(branch)s
...
@@ -333,12 +333,10 @@ branch = %(branch)s
self
.
cleanUp
(
None
)
self
.
cleanUp
(
None
)
remote_test_result_needs_cleanup
=
False
remote_test_result_needs_cleanup
=
False
begin
=
time
.
time
()
begin
=
time
.
time
()
portal_url
=
config
[
'test_suite_master_url'
]
portal_url
=
config
[
'test_suite_master_url'
]
portal
=
taskdistribution
.
TaskDistributionTool
(
portal_url
,
logger
=
DummyLogger
(
log
))
portal
=
taskdistribution
.
TaskDistributionTool
(
portal_url
,
logger
=
DummyLogger
(
log
))
self
.
portal
=
portal
test_suite_portal
=
taskdistribution
.
TaskDistributor
(
portal_url
,
logger
=
DummyLogger
(
log
))
test_suite_portal
=
taskdistribution
.
TaskDistributor
(
portal_url
,
logger
=
DummyLogger
(
log
))
test_suite_json
=
test_suite_portal
.
startTestSuite
(
config
[
'test_node_title'
])
test_suite_json
=
test_suite_portal
.
startTestSuite
(
config
[
'test_node_title'
])
test_suite_data
=
deunicodeData
(
json
.
loads
(
test_suite_json
))
test_suite_data
=
deunicodeData
(
json
.
loads
(
test_suite_json
))
log
(
"Got following test suite data from master : %r"
%
\
log
(
"Got following test suite data from master : %r"
%
\
...
@@ -363,7 +361,7 @@ from the distributor.")
...
@@ -363,7 +361,7 @@ from the distributor.")
elif
my_type_test
==
'ScalabilityTest'
:
elif
my_type_test
==
'ScalabilityTest'
:
runner
=
ScalabilityTestRunner
(
self
)
runner
=
ScalabilityTestRunner
(
self
)
else
:
else
:
log
(
"testnode, Runner type
'%s' not implemented."
,
%
(
my_type_test
)
)
log
(
"testnode, Runner type
not implemented."
,
my_type_test
)
raise
NotImplementedError
raise
NotImplementedError
...
...
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