Title: [99335] trunk/Tools
- Revision
- 99335
- Author
- [email protected]
- Date
- 2011-11-04 17:27:37 -0700 (Fri, 04 Nov 2011)
Log Message
Remove deprecated free functions in port.factory
https://bugs.webkit.org/show_bug.cgi?id=71494
Unreviewed. Fix exception when running new-run-webkit-httpd.
* Scripts/new-run-webkit-httpd:
Modified Paths
Diff
Modified: trunk/Tools/ChangeLog (99334 => 99335)
--- trunk/Tools/ChangeLog 2011-11-05 00:02:45 UTC (rev 99334)
+++ trunk/Tools/ChangeLog 2011-11-05 00:27:37 UTC (rev 99335)
@@ -1,3 +1,12 @@
+2011-11-04 Eric Seidel <[email protected]>
+
+ Remove deprecated free functions in port.factory
+ https://bugs.webkit.org/show_bug.cgi?id=71494
+
+ Unreviewed. Fix exception when running new-run-webkit-httpd.
+
+ * Scripts/new-run-webkit-httpd:
+
2011-11-04 Adam Roben <[email protected]>
Remove Leopard-specific code from build.webkit.org
Modified: trunk/Tools/Scripts/new-run-webkit-httpd (99334 => 99335)
--- trunk/Tools/Scripts/new-run-webkit-httpd 2011-11-05 00:02:45 UTC (rev 99334)
+++ trunk/Tools/Scripts/new-run-webkit-httpd 2011-11-05 00:27:37 UTC (rev 99335)
@@ -42,13 +42,9 @@
import sys
import tempfile
-# FIXME: We should not be hacking around in sys.path.
-scripts_directory = os.path.dirname(os.path.abspath(sys.argv[0]))
-webkitpy_directory = os.path.join(scripts_directory, "webkitpy")
-sys.path.append(os.path.join(webkitpy_directory, "layout_tests"))
+from webkitpy.common.host import Host
+from webkitpy.layout_tests.servers import http_server
-import port
-from servers import http_server
def run(options):
if not options.server:
@@ -61,7 +57,8 @@
# source of tests. Specifying port but no root does not seem
# meaningful.
raise 'Specifying port requires also a root.'
- port_obj = port.get(None, options)
+ host = Host()
+ port_obj = host.port_factory.get(options=options)
httpd = http_server.Lighttpd(port_obj,
tempfile.gettempdir(),
port=options.port,
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes