Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
erp5_workflow
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wenjie.zheng
erp5_workflow
Commits
4e2fdaea
Commit
4e2fdaea
authored
Jul 26, 2012
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve backward compatibility by accepting extra keyword parameters.
parent
05b42add
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
erp5/util/taskdistribution/__init__.py
erp5/util/taskdistribution/__init__.py
+8
-1
No files found.
erp5/util/taskdistribution/__init__.py
View file @
4e2fdaea
...
@@ -141,12 +141,16 @@ class TestResultLineProxy(RPCRetry):
...
@@ -141,12 +141,16 @@ class TestResultLineProxy(RPCRetry):
def
stop
(
self
,
test_count
=
None
,
error_count
=
None
,
failure_count
=
None
,
def
stop
(
self
,
test_count
=
None
,
error_count
=
None
,
failure_count
=
None
,
skip_count
=
None
,
duration
=
None
,
date
=
None
,
command
=
None
,
skip_count
=
None
,
duration
=
None
,
date
=
None
,
command
=
None
,
stdout
=
None
,
stderr
=
None
,
html_test_result
=
None
):
stdout
=
None
,
stderr
=
None
,
html_test_result
=
None
,
**
kw
):
"""
"""
Notify server of test completion.
Notify server of test completion.
Without any parameter, notifies of a test failure which prevents any
Without any parameter, notifies of a test failure which prevents any
precise reading (step count, how many succeeded, etc).
precise reading (step count, how many succeeded, etc).
BBB: extra named arguments are deprecated (if some are really needed,
they must be declared as explicit parameters, with proper default
value).
"""
"""
status_dict
=
{
status_dict
=
{
'test_count'
:
test_count
,
'test_count'
:
test_count
,
...
@@ -156,6 +160,9 @@ class TestResultLineProxy(RPCRetry):
...
@@ -156,6 +160,9 @@ class TestResultLineProxy(RPCRetry):
'duration'
:
duration
,
'duration'
:
duration
,
'date'
:
date
,
'date'
:
date
,
}
}
if
kw
:
self
.
_logger
.
info
(
'Extra parameters provided: %r'
,
kw
)
status_dict
.
update
(
kw
)
if
command
is
not
None
:
if
command
is
not
None
:
status_dict
[
'command'
]
=
command
status_dict
[
'command'
]
=
command
if
stdout
is
not
None
:
if
stdout
is
not
None
:
...
...
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