Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5-Boxiang
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
Hamza
erp5-Boxiang
Commits
6ed38256
Commit
6ed38256
authored
Aug 14, 2014
by
Kazuhiko Shiozaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix pyflakes errors and warnings.
parent
a85acf0c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
15 deletions
+3
-15
bt5/erp5_test_result/DocumentTemplateItem/portal_components/document.erp5.ERP5ScalabilityDistributor.py
...al_components/document.erp5.ERP5ScalabilityDistributor.py
+2
-14
bt5/erp5_test_result/bt/revision
bt5/erp5_test_result/bt/revision
+1
-1
No files found.
bt5/erp5_test_result/DocumentTemplateItem/portal_components/document.erp5.ERP5ScalabilityDistributor.py
View file @
6ed38256
...
...
@@ -26,18 +26,11 @@
##############################################################################
from
Products.ERP5.Document.ERP5ProjectUnitTestDistributor
import
ERP5ProjectUnitTestDistributor
import
string
import
erp5.util.taskdistribution
from
Products.ERP5Type.Log
import
log
from
zLOG
import
LOG
,
ERROR
from
AccessControl
import
ClassSecurityInfo
from
Products.ERP5Type
import
Permissions
import
json
import
random
from
Products.ERP5.Tool.TaskDistributionTool
import
TaskDistributionTool
class
ERP5ScalabilityDistributor
(
ERP5ProjectUnitTestDistributor
):
security
=
ClassSecurityInfo
()
...
...
@@ -50,7 +43,6 @@ class ERP5ScalabilityDistributor(ERP5ProjectUnitTestDistributor):
"""
# Get modules
portal
=
self
.
getPortalObject
()
test_node_module
=
self
.
_getTestNodeModule
()
test_suite_module
=
self
.
_getTestSuiteModule
()
...
...
@@ -126,7 +118,7 @@ class ERP5ScalabilityDistributor(ERP5ProjectUnitTestDistributor):
if
test_node
.
getValidationState
()
!=
'validated'
:
try
:
test_node
.
validate
()
except
e
:
except
Exception
,
e
:
LOG
(
'Test Node Validate'
,
ERROR
,
'%s'
%
e
)
return
test_node
return
None
...
...
@@ -159,13 +151,9 @@ class ERP5ScalabilityDistributor(ERP5ProjectUnitTestDistributor):
"""
startTestSuite : subscribe node + return testsuite list to the master
"""
config_list
=
[]
super
(
ERP5ScalabilityDistributor
,
self
).
subscribeNode
(
title
=
title
,
computer_guid
=
computer_guid
,
batch_mode
=
batch_mode
)
test_node
=
self
.
getTestNode
(
title
,
batch_mode
)
test_suite_module
=
self
.
_getTestSuiteModule
()
test_node_module
=
self
.
_getTestNodeModule
()
portal
=
self
.
getPortalObject
()
# If the testnode wich request testsuites is not the master
# he does not have to receive any testsuites
...
...
bt5/erp5_test_result/bt/revision
View file @
6ed38256
26
6
26
7
\ No newline at end of file
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