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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Georgios Dagkakis
erp5
Commits
003d56c6
Commit
003d56c6
authored
Jan 12, 2013
by
Julien Muchembled
Committed by
Sebastien Robin
Jan 14, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
TaskDistributionTool: fix bots restarting test suites without any reason
parent
5d358683
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
product/ERP5/Tool/TaskDistributionTool.py
product/ERP5/Tool/TaskDistributionTool.py
+2
-6
No files found.
product/ERP5/Tool/TaskDistributionTool.py
View file @
003d56c6
...
@@ -124,16 +124,12 @@ class TaskDistributionTool(BaseTool):
...
@@ -124,16 +124,12 @@ 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"
,
simulation_state
=
"started"
,
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
:
test_result
=
result_list
[
0
].
getObject
()
test_result
=
result_list
[
0
].
getObject
()
if
test_result
is
None
or
test_result
.
getSimulationState
()
in
\
if
test_result
is
not
None
:
(
'cancelled'
,
'failed'
):
pass
else
:
last_state
=
test_result
.
getSimulationState
()
last_state
=
test_result
.
getSimulationState
()
last_revision
=
str
(
test_result
.
getIntIndex
())
last_revision
=
str
(
test_result
.
getIntIndex
())
if
last_state
==
'started'
:
if
last_state
==
'started'
:
...
@@ -148,7 +144,7 @@ class TaskDistributionTool(BaseTool):
...
@@ -148,7 +144,7 @@ class TaskDistributionTool(BaseTool):
test_result
.
serialize
()
# prevent duplicate test result lines
test_result
.
serialize
()
# prevent duplicate test result lines
createTestResultLineList
(
test_result
,
test_name_list
)
createTestResultLineList
(
test_result
,
test_name_list
)
return
test_result
.
getRelativeUrl
(),
last_revision
return
test_result
.
getRelativeUrl
(),
last_revision
if
last_state
==
'stopped'
:
if
last_state
in
(
'stopped'
,
'failed'
)
:
if
reference_list_string
is
not
None
:
if
reference_list_string
is
not
None
:
if
reference_list_string
==
test_result
.
getReference
():
if
reference_list_string
==
test_result
.
getReference
():
return
return
...
...
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