Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Aaron Chen
erp5
Commits
003d56c6
Commit
003d56c6
authored
12 years ago
by
Julien Muchembled
Committed by
Sebastien Robin
12 years ago
Browse files
Options
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):
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
...
...
This diff is collapsed.
Click to expand it.
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