2009-11-27 Adam Barth <abarth@webkit.org>
authorabarth@webkit.org <abarth@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 27 Nov 2009 23:35:18 +0000 (23:35 +0000)
committerabarth@webkit.org <abarth@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 27 Nov 2009 23:35:18 +0000 (23:35 +0000)
        Reviewed by Eric Seidel.

        [bzt] Support --status-host in style-queue
        https://bugs.webkit.org/show_bug.cgi?id=31941

        * Scripts/modules/commands/queues.py:
        * Scripts/modules/statusbot.py:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51448 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebKitTools/ChangeLog
WebKitTools/Scripts/modules/commands/queues.py
WebKitTools/Scripts/modules/statusbot.py

index 76f3560f6a60619f35f14ec54d78b42d7e2f7593..3b0cdb9c29b8e5ad91b2d67f0ca27ad803ca5a02 100644 (file)
@@ -1,3 +1,13 @@
+2009-11-27  Adam Barth  <abarth@webkit.org>
+
+        Reviewed by Eric Seidel.
+
+        [bzt] Support --status-host in style-queue
+        https://bugs.webkit.org/show_bug.cgi?id=31941
+
+        * Scripts/modules/commands/queues.py:
+        * Scripts/modules/statusbot.py:
+
 2009-11-27  Adam Barth  <abarth@webkit.org>
 
         Reviewed by Eric Seidel.
index b7ff871e0e13734f07f3a4e4f398cfdbe9fbc580..f5c57e53650a106b1da44425f5ec932b17897003 100644 (file)
@@ -156,11 +156,9 @@ class AbstractTryQueue(AbstractQueue, PersistentPatchCollectionDelegate):
 
     # AbstractQueue methods
 
-    def status_host(self):
-        return None # FIXME: A hack until we come up with a more generic status page.
-
     def begin_work_queue(self):
         AbstractQueue.begin_work_queue(self)
+        self.tool.status().set_host(self.options.status_host)
         self._patches = PersistentPatchCollection(self)
 
     def next_work_item(self):
index 3a69a7b1e77889a5715c9b287392430fe3ed2bcb..ba9ca83f8b1f3355311e23e12eb875b73b07e4ef 100644 (file)
@@ -53,9 +53,12 @@ class StatusBot:
     default_host = "webkit-commit-queue.appspot.com"
 
     def __init__(self, host=default_host):
+        self.set_host(host)
+        self.browser = Browser()
+
+    def set_host(self, host):
         self.statusbot_host = host
         self.statusbot_server_url = "http://%s" % self.statusbot_host
-        self.browser = Browser()
 
     def update_status(self, queue_name, status, patch=None):
         # During unit testing, statusbot_host is None