Title: [105944] trunk/Tools
- Revision
- 105944
- Author
- [email protected]
- Date
- 2012-01-25 16:52:40 -0800 (Wed, 25 Jan 2012)
Log Message
nrwt: should be able to run --platform test interactively
https://bugs.webkit.org/show_bug.cgi?id=76959
Reviewed by Adam Barth.
As part of refactoring the Port interfaces, in r103254 I made
passing a Host object to the Port mandatory; previously TestPort
objects would create their own (mock) hosts. However,
new-run-webkit-tests always passed a real Host, not a MockHost,
and so you couldn't run new-run-webkit-tests --platform test
interactively to debug test failures.
This change fixes that by creating a MockHost instead of a real
host if you say --platform test*.
* Scripts/webkitpy/layout_tests/run_webkit_tests.py:
(main):
Modified Paths
Diff
Modified: trunk/Tools/ChangeLog (105943 => 105944)
--- trunk/Tools/ChangeLog 2012-01-26 00:48:04 UTC (rev 105943)
+++ trunk/Tools/ChangeLog 2012-01-26 00:52:40 UTC (rev 105944)
@@ -1,5 +1,25 @@
2012-01-25 Dirk Pranke <[email protected]>
+ nrwt: should be able to run --platform test interactively
+ https://bugs.webkit.org/show_bug.cgi?id=76959
+
+ Reviewed by Adam Barth.
+
+ As part of refactoring the Port interfaces, in r103254 I made
+ passing a Host object to the Port mandatory; previously TestPort
+ objects would create their own (mock) hosts. However,
+ new-run-webkit-tests always passed a real Host, not a MockHost,
+ and so you couldn't run new-run-webkit-tests --platform test
+ interactively to debug test failures.
+
+ This change fixes that by creating a MockHost instead of a real
+ host if you say --platform test*.
+
+ * Scripts/webkitpy/layout_tests/run_webkit_tests.py:
+ (main):
+
+2012-01-25 Dirk Pranke <[email protected]>
+
run-webkit-tests --lint-test-files should lint all the ports by default
https://bugs.webkit.org/show_bug.cgi?id=76749
Modified: trunk/Tools/Scripts/webkitpy/layout_tests/run_webkit_tests.py (105943 => 105944)
--- trunk/Tools/Scripts/webkitpy/layout_tests/run_webkit_tests.py 2012-01-26 00:48:04 UTC (rev 105943)
+++ trunk/Tools/Scripts/webkitpy/layout_tests/run_webkit_tests.py 2012-01-26 00:52:40 UTC (rev 105944)
@@ -452,7 +452,14 @@
def main():
options, args = parse_args()
- host = Host()
+ if options.platform.startswith('test'):
+ # It's a bit lame to import mocks into real code, but this allows the user
+ # to run tests against the test platform interactively, which is useful for
+ # debugging test failures.
+ from webkitpy.common.host_mock import MockHost
+ host = MockHost()
+ else:
+ host = Host()
host._initialize_scm()
port = host.port_factory.get(options.platform, options)
return run(port, options, args)
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes