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
Labels
Merge Requests
139
Merge Requests
139
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
Jobs
Commits
Open sidebar
nexedi
erp5
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
Show 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):
def
stop
(
self
,
test_count
=
None
,
error_count
=
None
,
failure_count
=
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.
Without any parameter, notifies of a test failure which prevents any
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
=
{
'test_count'
:
test_count
,
...
...
@@ -156,6 +160,9 @@ class TestResultLineProxy(RPCRetry):
'duration'
:
duration
,
'date'
:
date
,
}
if
kw
:
self
.
_logger
.
info
(
'Extra parameters provided: %r'
,
kw
)
status_dict
.
update
(
kw
)
if
command
is
not
None
:
status_dict
[
'command'
]
=
command
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