WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
68823
Add skeleton parsing for a WatchList.
https://bugs.webkit.org/show_bug.cgi?id=68823
Summary
Add skeleton parsing for a WatchList.
David Levin
Reported
2011-09-26 12:00:33 PDT
This will serve as a basis for reading and applying watch lists.
Attachments
Patch
(6.03 KB, patch)
2011-09-26 13:17 PDT
,
David Levin
no flags
Details
Formatted Diff
Diff
Patch
(8.52 KB, patch)
2011-09-26 14:14 PDT
,
David Levin
abarth
: review+
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
David Levin
Comment 1
2011-09-26 13:17:29 PDT
Created
attachment 108716
[details]
Patch
Eric Seidel (no email)
Comment 2
2011-09-26 13:24:10 PDT
Comment on
attachment 108716
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=108716&action=review
> Tools/Scripts/webkitpy/tool/steps/applywatchlist.py:34 > +class WatchList:
new-style classes (python 2.5 and above?) always subclass from (object)
> Tools/Scripts/webkitpy/tool/steps/applywatchlist.py:46 > + # Parse the top level sections in the watch list. > + for section in watch_list: > + parser = watch_list_parsers.get(section) > + if not parse_method: > + raise Exception('Unknown section in watch list: %s' % section) > + parser(watch_list[section])
I would think you'd want a separate WatchListParser class or Factory class which could produce these, leaving WatchList to just be the model.
> Tools/Scripts/webkitpy/tool/steps/applywatchlist_unittest.py:38 > + def _verifyException(self, regex_message, callable, *args): > + try:
Sad. Python 2.7 has something like this in unittest, but pre-2.7 doesn't.
David Levin
Comment 3
2011-09-26 14:14:17 PDT
Created
attachment 108720
[details]
Patch
Adam Barth
Comment 4
2011-09-26 14:21:01 PDT
Comment on
attachment 108720
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=108720&action=review
> Tools/Scripts/webkitpy/common/watchlist/parsewatchlist.py:36 > +def parse_watch_list(watch_list_contents):
Normally we'd name the package with a noun, so watchlistparser.py
David Levin
Comment 5
2011-09-26 16:48:16 PDT
Committed as
http://trac.webkit.org/changeset/95995
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