Changeset 51018 in webkit
- Timestamp:
- Nov 16, 2009 1:25:03 AM (14 years ago)
- Location:
- trunk/WebKitTools
- Files:
-
- 1 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKitTools/ChangeLog
r51017 r51018 1 2009-11-16 Adam Barth <abarth@webkit.org> 2 3 Reviewed by Eric Seidel. 4 5 Unit test WorkQueue 6 https://bugs.webkit.org/show_bug.cgi?id=31531 7 8 Adds basic unit testing for WorkQueue. Just runs through one cycle. 9 10 * Scripts/bugzilla-tool: 11 * Scripts/modules/statusbot.py: 12 * Scripts/modules/workqueue.py: 13 * Scripts/modules/workqueue_unittest.py: Added. 14 * Scripts/run-webkit-unittests: 15 1 16 2009-11-16 Eric Seidel <eric@webkit.org> 2 17 -
trunk/WebKitTools/Scripts/bugzilla-tool
r51017 r51018 723 723 log("Running WebKit Commit Queue. %s" % datetime.now().strftime(WorkQueue.log_date_format)) 724 724 725 def should_continue_work_queue(self): 726 return True 727 725 728 def next_work_item(self): 726 729 # Fetch patches instead of just bug ids to that we validate reviewer/committer flags on every patch. -
trunk/WebKitTools/Scripts/modules/statusbot.py
r48730 r51018 57 57 58 58 def update_status(self, status, bug_id=None, patch_id=None): 59 # During unit testing, statusbot_host is None 60 if not self.statusbot_host: 61 return 59 62 self.browser.open(self.update_status_url) 60 63 self.browser.select_form(name="update_status") -
trunk/WebKitTools/Scripts/modules/workqueue.py
r51014 r51018 34 34 from datetime import datetime, timedelta 35 35 36 from logging import log, OutputTee37 from scm import ScriptError38 from statusbot import StatusBot36 from modules.logging import log, OutputTee 37 from modules.scm import ScriptError 38 from modules.statusbot import StatusBot 39 39 40 40 class WorkQueueDelegate: … … 49 49 50 50 def begin_work_queue(self): 51 raise NotImplementedError, "subclasses must implement" 52 53 def should_continue_work_queue(self): 51 54 raise NotImplementedError, "subclasses must implement" 52 55 … … 79 82 80 83 self._delegate.begin_work_queue() 81 while ( True):84 while (self._delegate.should_continue_work_queue()): 82 85 self._ensure_work_log_closed() 83 86 try: -
trunk/WebKitTools/Scripts/run-webkit-unittests
r47955 r51018 38 38 from modules.logging_unittest import * 39 39 from modules.scm_unittest import * 40 from modules.workqueue_unittest import * 40 41 41 42 if __name__ == "__main__":
Note: See TracChangeset
for help on using the changeset viewer.