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
Noah Brackenbury
erp5
Commits
77c3cd8b
Commit
77c3cd8b
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
4798c2e6
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 @
77c3cd8b
...
...
@@ -124,16 +124,12 @@ class TaskDistributionTool(BaseTool):
int_index
,
reference
=
revision
result_list
=
portal
.
test_result_module
.
searchFolder
(
portal_type
=
"Test Result"
,
simulation_state
=
"started"
,
title
=
"=%s"
%
test_title
,
sort_on
=
((
"creation_date"
,
"descending"
),),
limit
=
1
)
if
result_list
:
test_result
=
result_list
[
0
].
getObject
()
if
test_result
is
None
or
test_result
.
getSimulationState
()
in
\
(
'cancelled'
,
'failed'
):
pass
else
:
if
test_result
is
not
None
:
last_state
=
test_result
.
getSimulationState
()
last_revision
=
str
(
test_result
.
getIntIndex
())
if
last_state
==
'started'
:
...
...
@@ -148,7 +144,7 @@ class TaskDistributionTool(BaseTool):
test_result
.
serialize
()
# prevent duplicate test result lines
createTestResultLineList
(
test_result
,
test_name_list
)
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
==
test_result
.
getReference
():
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