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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Aurélien Vermylen
erp5
Commits
9f040229
Commit
9f040229
authored
Feb 20, 2013
by
Sebastien Robin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove useless spaces
parent
35cccba2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
product/ERP5/Document/CloudPerformanceUnitTestDistributor.py
product/ERP5/Document/CloudPerformanceUnitTestDistributor.py
+2
-2
product/ERP5/Document/ERP5ProjectUnitTestDistributor.py
product/ERP5/Document/ERP5ProjectUnitTestDistributor.py
+4
-4
No files found.
product/ERP5/Document/CloudPerformanceUnitTestDistributor.py
View file @
9f040229
...
@@ -60,8 +60,8 @@ class CloudPerformanceUnitTestDistributor(ERP5ProjectUnitTestDistributor):
...
@@ -60,8 +60,8 @@ class CloudPerformanceUnitTestDistributor(ERP5ProjectUnitTestDistributor):
x
.
getObject
()
for
x
in
test_node_module
.
searchFolder
(
x
.
getObject
()
for
x
in
test_node_module
.
searchFolder
(
portal_type
=
"Test Node"
,
validation_state
=
"validated"
,
portal_type
=
"Test Node"
,
validation_state
=
"validated"
,
specialise_uid
=
self
.
getUid
())]
specialise_uid
=
self
.
getUid
())]
test_suite_list
=
[
x
.
getRelativeUrl
()
test_suite_list
=
[
x
.
getRelativeUrl
()
for
x
in
test_suite_module
.
searchFolder
(
for
x
in
test_suite_module
.
searchFolder
(
validation_state
=
"validated"
,
validation_state
=
"validated"
,
specialise_uid
=
self
.
getUid
())]
specialise_uid
=
self
.
getUid
())]
...
...
product/ERP5/Document/ERP5ProjectUnitTestDistributor.py
View file @
9f040229
...
@@ -105,7 +105,7 @@ class ERP5ProjectUnitTestDistributor(XMLObject):
...
@@ -105,7 +105,7 @@ class ERP5ProjectUnitTestDistributor(XMLObject):
except
ValueError
:
except
ValueError
:
test_suite_list_to_remove
.
append
(
test_suite_title
)
test_suite_list_to_remove
.
append
(
test_suite_title
)
return
test_suite_list_to_remove
return
test_suite_list_to_remove
security
.
declareProtected
(
Permissions
.
ManagePortal
,
"optimizeConfiguration"
)
security
.
declareProtected
(
Permissions
.
ManagePortal
,
"optimizeConfiguration"
)
def
optimizeConfiguration
(
self
):
def
optimizeConfiguration
(
self
):
"""
"""
...
@@ -118,7 +118,7 @@ class ERP5ProjectUnitTestDistributor(XMLObject):
...
@@ -118,7 +118,7 @@ class ERP5ProjectUnitTestDistributor(XMLObject):
x
.
getObject
()
for
x
in
test_node_module
.
searchFolder
(
x
.
getObject
()
for
x
in
test_node_module
.
searchFolder
(
portal_type
=
"Test Node"
,
validation_state
=
"validated"
,
portal_type
=
"Test Node"
,
validation_state
=
"validated"
,
specialise_uid
=
self
.
getUid
(),
sort_on
=
[(
'title'
,
'ascending'
)])]
specialise_uid
=
self
.
getUid
(),
sort_on
=
[(
'title'
,
'ascending'
)])]
test_node_list_len
=
len
(
test_node_list
)
test_node_list_len
=
len
(
test_node_list
)
def
_optimizeConfiguration
(
test_suite_list_to_add
,
level
=
0
):
def
_optimizeConfiguration
(
test_suite_list_to_add
,
level
=
0
):
if
test_suite_list_to_add
:
if
test_suite_list_to_add
:
...
@@ -256,7 +256,7 @@ class ERP5ProjectUnitTestDistributor(XMLObject):
...
@@ -256,7 +256,7 @@ class ERP5ProjectUnitTestDistributor(XMLObject):
if
batch_mode
:
if
batch_mode
:
return
config_list
return
config_list
return
json
.
dumps
(
config_list
)
return
json
.
dumps
(
config_list
)
security
.
declarePublic
(
"createTestResult"
)
security
.
declarePublic
(
"createTestResult"
)
def
createTestResult
(
self
,
name
,
revision
,
test_name_list
,
allow_restart
,
def
createTestResult
(
self
,
name
,
revision
,
test_name_list
,
allow_restart
,
test_title
=
None
,
node_title
=
None
,
project_title
=
None
):
test_title
=
None
,
node_title
=
None
,
project_title
=
None
):
...
@@ -271,7 +271,7 @@ class ERP5ProjectUnitTestDistributor(XMLObject):
...
@@ -271,7 +271,7 @@ class ERP5ProjectUnitTestDistributor(XMLObject):
test_suite
.
setPingDate
()
test_suite
.
setPingDate
()
return
portal
.
portal_task_distribution_tool
.
createTestResult
(
name
,
return
portal
.
portal_task_distribution_tool
.
createTestResult
(
name
,
revision
,
test_name_list
,
allow_restart
,
revision
,
test_name_list
,
allow_restart
,
test_title
=
title_title
,
node_title
=
node_title
,
test_title
=
title_title
,
node_title
=
node_title
,
project_title
=
project_title
)
project_title
=
project_title
)
def
_getTestNodeFromTitle
(
self
,
node_title
):
def
_getTestNodeFromTitle
(
self
,
node_title
):
...
...
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