WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 180820
[webkitpy] Add ignore_errors keyword argument to Executive.run_command() for replacing the common pattern of error_handler usage
https://bugs.webkit.org/show_bug.cgi?id=180820
Summary
[webkitpy] Add ignore_errors keyword argument to Executive.run_command() for ...
Basuke Suzuki
Reported
2017-12-14 11:15:25 PST
The error_handler argument of Executive.run_command() method is commonly used for specifying Executive.ignore_error to ignore errors. Is should be more clear by adding ignore_errors=True keyword argument.
Attachments
patch
(22.06 KB, patch)
2017-12-14 11:48 PST
,
Basuke Suzuki
ddkilzer
: review+
ddkilzer
: commit-queue-
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Basuke Suzuki
Comment 1
2017-12-14 11:16:46 PST
Also there's no need to import Executive module just to pass Executive.ignore_error static method if this option is available.
Basuke Suzuki
Comment 2
2017-12-14 11:48:50 PST
Created
attachment 329373
[details]
patch
David Kilzer (:ddkilzer)
Comment 3
2018-01-23 10:42:39 PST
Comment on
attachment 329373
[details]
patch View in context:
https://bugs.webkit.org/attachment.cgi?id=329373&action=review
r=me with a couple comments.
> Tools/Scripts/webkitpy/common/system/executive.py:407 > + if ignore_errors: > + assert error_handler is None, "don't specify error_handler if ignore_errors"
Nit: I would add " is True" to the end of the message to make it clear: assert error_handler is None, "don't specify error_handler if ignore_errors is True" I would prefer this to be fixed before landing unless you feel strongly about not adding " is True".
> Tools/Scripts/webkitpy/common/system/executive_mock.py:198 > + if ignore_errors: > + assert error_handler is None, "don't specify error_handler if ignore_errors"
Nit: I would add " is True" to the end of the message to make it clear: assert error_handler is None, "don't specify error_handler if ignore_errors is True" I would prefer this to be fixed before landing unless you feel strongly about not adding " is True".
David Kilzer (:ddkilzer)
Comment 4
2018-01-23 11:31:25 PST
Committed
r227427
: <
https://trac.webkit.org/changeset/227427
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug