Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.toolbox
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
Boxiang Sun
slapos.toolbox
Commits
2e1df74e
Commit
2e1df74e
authored
Nov 03, 2017
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
TaskDistributionTool is gone
Follow up
nexedi/erp5@ccbf9007
parent
2fd4b63a
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
8 deletions
+4
-8
slapos/agent/agent.py
slapos/agent/agent.py
+2
-6
slapos/resiliencytest/__init__.py
slapos/resiliencytest/__init__.py
+1
-1
slapos/runner/runnertest.py
slapos/runner/runnertest.py
+1
-1
No files found.
slapos/agent/agent.py
View file @
2e1df74e
...
...
@@ -42,7 +42,7 @@ from slapos.slap.slap import ConnectionError
from
slapos.grid.utils
import
setRunning
,
setFinished
from
erp5.util.taskdistribution
import
TaskDistributor
,
TaskDistributionTool
from
erp5.util.taskdistribution
import
TaskDistributor
from
erp5.util.testnode.Updater
import
Updater
from
erp5.util.testnode.ProcessManager
import
SubprocessError
,
ProcessManager
,
CancellationError
...
...
@@ -238,10 +238,6 @@ def main():
node_title
=
agent_parameter_dict
[
'node_title'
],
computer_guid
=
"None"
)
task_distribution_tool
=
TaskDistributionTool
(
agent_parameter_dict
[
'report_url'
],
logger
=
logger
)
if
type
(
test_suite_data
)
==
str
:
# Backward compatiblity
test_suite_data
=
json
.
loads
(
test_suite_data
)
...
...
@@ -286,7 +282,7 @@ def main():
# Backward compatiblity
unit_test_dict
=
json
.
loads
(
unit_test_dict
)
test_result
=
task_distribut
ion_tool
.
createTestResult
(
test_result
=
task_distribut
or
.
createTestResult
(
revision
=
','
.
join
(
full_revision_list
),
test_name_list
=
unit_test_dict
.
keys
(),
node_title
=
agent_parameter_dict
[
'node_title'
],
...
...
slapos/resiliencytest/__init__.py
View file @
2e1df74e
...
...
@@ -240,7 +240,7 @@ def runUnitTest():
args
=
parseArguments
()
logger
,
fname
=
setupLogging
(
'runScalabilityTestSuite'
,
None
)
try
:
master
=
taskdistribution
.
TaskDistribut
ionTool
(
args
.
test_suite_master_url
)
master
=
taskdistribution
.
TaskDistribut
or
(
args
.
test_suite_master_url
)
test_suite_title
=
args
.
test_suite_title
or
args
.
test_suite
revision
=
args
.
revision
...
...
slapos/runner/runnertest.py
View file @
2e1df74e
...
...
@@ -613,7 +613,7 @@ def main():
Function meant to be run by erp5testnode.
"""
args
=
parseArguments
()
master
=
taskdistribution
.
TaskDistribut
ionTool
(
args
.
master_url
)
master
=
taskdistribution
.
TaskDistribut
or
(
args
.
master_url
)
test_suite_title
=
args
.
test_suite_title
or
args
.
test_suite
revision
=
args
.
revision
...
...
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