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
Ekaterina
erp5
Commits
8a03819d
Commit
8a03819d
authored
Feb 05, 2013
by
Sebastien Robin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
correctly quote titles, before a space in title was introducing mess
parent
d194c072
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
product/ERP5/Document/ERP5ProjectUnitTestDistributor.py
product/ERP5/Document/ERP5ProjectUnitTestDistributor.py
+2
-2
product/ERP5/Tool/TaskDistributionTool.py
product/ERP5/Tool/TaskDistributionTool.py
+2
-2
No files found.
product/ERP5/Document/ERP5ProjectUnitTestDistributor.py
View file @
8a03819d
...
@@ -276,7 +276,7 @@ class ERP5ProjectUnitTestDistributor(XMLObject):
...
@@ -276,7 +276,7 @@ class ERP5ProjectUnitTestDistributor(XMLObject):
def
_getTestNodeFromTitle
(
self
,
node_title
):
def
_getTestNodeFromTitle
(
self
,
node_title
):
test_node_list
=
self
.
_getTestNodeModule
().
searchFolder
(
test_node_list
=
self
.
_getTestNodeModule
().
searchFolder
(
portal_type
=
'Test Node'
,
title
=
"=
%s
"
%
node_title
)
portal_type
=
'Test Node'
,
title
=
"=
'%s'
"
%
node_title
)
assert
len
(
test_node_list
)
==
1
,
"We found %i test nodes for %s"
%
(
assert
len
(
test_node_list
)
==
1
,
"We found %i test nodes for %s"
%
(
len
(
test_node_list
),
node_title
)
len
(
test_node_list
),
node_title
)
test_node
=
test_node_list
[
0
].
getObject
()
test_node
=
test_node_list
[
0
].
getObject
()
...
@@ -284,7 +284,7 @@ class ERP5ProjectUnitTestDistributor(XMLObject):
...
@@ -284,7 +284,7 @@ class ERP5ProjectUnitTestDistributor(XMLObject):
def
_getTestSuiteFromTitle
(
self
,
suite_title
):
def
_getTestSuiteFromTitle
(
self
,
suite_title
):
test_suite_list
=
self
.
_getTestSuiteModule
().
searchFolder
(
test_suite_list
=
self
.
_getTestSuiteModule
().
searchFolder
(
portal_type
=
'Test Suite'
,
title
=
"=
%s
"
%
suit_tile
,
validation_state
=
"validated"
)
portal_type
=
'Test Suite'
,
title
=
"=
'%s'
"
%
suit_tile
,
validation_state
=
"validated"
)
assert
len
(
test_suite_list
)
==
1
,
"We found %i test suite for %s"
%
(
assert
len
(
test_suite_list
)
==
1
,
"We found %i test suite for %s"
%
(
len
(
test_suite_list
),
name
)
len
(
test_suite_list
),
name
)
test_suite
=
test_suite_list
[
0
].
getObject
()
test_suite
=
test_suite_list
[
0
].
getObject
()
...
...
product/ERP5/Tool/TaskDistributionTool.py
View file @
8a03819d
...
@@ -91,7 +91,7 @@ class TaskDistributionTool(BaseTool):
...
@@ -91,7 +91,7 @@ class TaskDistributionTool(BaseTool):
def
createTestResultLineList
(
test_result
,
test_name_list
):
def
createTestResultLineList
(
test_result
,
test_name_list
):
duration_list
=
[]
duration_list
=
[]
previous_test_result_list
=
portal
.
test_result_module
.
searchFolder
(
previous_test_result_list
=
portal
.
test_result_module
.
searchFolder
(
title
=
'=
%s
'
%
test_result
.
getTitle
(),
title
=
'=
"%s"
'
%
test_result
.
getTitle
(),
sort_on
=
[(
'creation_date'
,
'descending'
)],
sort_on
=
[(
'creation_date'
,
'descending'
)],
simulation_state
=
'stopped'
,
simulation_state
=
'stopped'
,
limit
=
1
)
limit
=
1
)
...
@@ -124,7 +124,7 @@ class TaskDistributionTool(BaseTool):
...
@@ -124,7 +124,7 @@ class TaskDistributionTool(BaseTool):
int_index
,
reference
=
revision
int_index
,
reference
=
revision
result_list
=
portal
.
test_result_module
.
searchFolder
(
result_list
=
portal
.
test_result_module
.
searchFolder
(
portal_type
=
"Test Result"
,
portal_type
=
"Test Result"
,
title
=
"=%s"
%
test_title
,
title
=
'="%s"'
%
test_title
,
sort_on
=
((
"creation_date"
,
"descending"
),),
sort_on
=
((
"creation_date"
,
"descending"
),),
limit
=
1
)
limit
=
1
)
if
result_list
:
if
result_list
:
...
...
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