+2012-04-03 Raphael Kubo da Costa <rakuco@FreeBSD.org>
+
+ rebaseline-server: Make it possible to not launch a browser with the server.
+ https://bugs.webkit.org/show_bug.cgi?id=82999
+
+ Reviewed by Adam Barth.
+
+ Add the `--no-show-results' option, which lets one decide not to
+ launch a web browser when running the rebaseline server. This is
+ especially useful if the default browser is not the wanted one, or
+ if the rebaseline server page is already open.
+
+ * Scripts/webkitpy/tool/commands/abstractlocalservercommand.py:
+ (AbstractLocalServerCommand.__init__):
+ (AbstractLocalServerCommand.execute):
+
2012-04-02 Mikhail Pozdnyakov <mikhail.pozdnyakov@intel.com>
EFL's LayoutTestController disableImageLoading implementation.
def __init__(self):
options = [
make_option("--httpd-port", action="store", type="int", default=8127, help="Port to use for the HTTP server"),
+ make_option("--no-show-results", action="store_false", default=True, dest="show_results", help="Don't launch a browser with the rebaseline server"),
]
AbstractDeclarativeCommand.__init__(self, options=options)
print "Starting server at %s" % server_url
print "Use the 'Exit' link in the UI, %squitquitquit or Ctrl-C to stop" % server_url
- # FIXME: This seems racy.
- threading.Timer(0.1, lambda: self._tool.user.open_url(server_url)).start()
+ if options.show_results:
+ # FIXME: This seems racy.
+ threading.Timer(0.1, lambda: self._tool.user.open_url(server_url)).start()
httpd = self.server(httpd_port=options.httpd_port, config=config)
httpd.serve_forever()