WebKit Bugzilla
Attachment 339574 Details for
Bug 185054
: REGRESSION (r229955): run-webkit-tests runs tests in skipped directories and subdirectories of directory given on command line
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch and unit tests
bug-185054-20180504113222.patch (text/plain), 6.42 KB, created by
Daniel Bates
on 2018-05-04 11:32:23 PDT
(
hide
)
Description:
Patch and unit tests
Filename:
MIME Type:
Creator:
Daniel Bates
Created:
2018-05-04 11:32:23 PDT
Size:
6.42 KB
patch
obsolete
>Subversion Revision: 231355 >diff --git a/Tools/ChangeLog b/Tools/ChangeLog >index 717973039824042379641466e7e4990a1c720936..b67945b5c2bb6180dcd3e18b59976e43c970c0af 100644 >--- a/Tools/ChangeLog >+++ b/Tools/ChangeLog >@@ -1,3 +1,28 @@ >+2018-05-04 Daniel Bates <dabates@apple.com> >+ >+ REGRESSION (r229955): run-webkit-tests runs tests in skipped directories and subdirectories of directory given on command line >+ https://bugs.webkit.org/show_bug.cgi?id=185054 >+ <rdar://problem/39773209> >+ >+ Reviewed by NOBODY (OOPS!). >+ >+ Fallback to MacPort.CURRENT_VERSION if we are not using a known named macOS and do not have Apple Additions. >+ >+ Darwin-based ports have OS version-specific test expectations and are certified to support running tests using >+ the currently shipping OS by way of a hardcoded class variable CURRENT_VERSION. The run-webkit-tests script >+ depends on the OS version to find the applicable TestExpectations files to parse to compute the list of skipped >+ tests for the port. >+ >+ * Scripts/webkitpy/port/mac.py: >+ (MacPort.__init__): Fall back to MacPort.CURRENT_VERSION if we are not using a known named macOS and do not >+ have Apple Additions. >+ * Scripts/webkitpy/port/mac_unittest.py: >+ (MacTest.test_factory_with_future_version): Added. >+ (MacTest.test_factory_with_future_version_and_apple_additions): Renamed from MacTest.test_factory_with_future_version() >+ and added code to use the mock Apple Additions so that running this code with- and without- the real Apple Additions >+ produces consistent results now that the Mac port's OS version falls back to MacPort.CURRENT_VERSION when Apple Additions >+ is absent. >+ > 2018-05-04 Carlos Garcia Campos <cgarcia@igalia.com> > > [GTK] Epiphany (GNOME Web) says "Error downloading: Service Unavailable." when trying to download an image from discogs.com >diff --git a/Tools/Scripts/webkitpy/port/mac.py b/Tools/Scripts/webkitpy/port/mac.py >index 710a810412fa1e529c2416e1cc4f167be952482c..f2d761e82ea2d8ab2d0fb1be22e59554b57f520c 100644 >--- a/Tools/Scripts/webkitpy/port/mac.py >+++ b/Tools/Scripts/webkitpy/port/mac.py >@@ -60,7 +60,7 @@ class MacPort(DarwinPort): > split_port_name = port_name.split('-') > if len(split_port_name) > 1 and split_port_name[1] != 'wk2': > self._os_version = version_name_map.from_name(split_port_name[1])[1] >- elif self.host.platform.is_mac(): >+ elif self.host.platform.is_mac() and apple_additions(): > self._os_version = self.host.platform.os_version > if not self._os_version: > self._os_version = MacPort.CURRENT_VERSION >diff --git a/Tools/Scripts/webkitpy/port/mac_unittest.py b/Tools/Scripts/webkitpy/port/mac_unittest.py >index 97ba5c1785e03c4e5903e4be0f687633fe86c339..8a146b05bcf754daa45f85d9de2137912779fa16 100644 >--- a/Tools/Scripts/webkitpy/port/mac_unittest.py >+++ b/Tools/Scripts/webkitpy/port/mac_unittest.py >@@ -34,6 +34,7 @@ from webkitpy.common.system.outputcapture import OutputCapture > from webkitpy.tool.mocktool import MockOptions > from webkitpy.common.system.executive_mock import MockExecutive, MockExecutive2, ScriptError > from webkitpy.common.version import Version >+from webkitpy.common.version_name_map import VersionNameMap > > > class MacTest(darwin_testcase.DarwinTest): >@@ -159,19 +160,37 @@ class MacTest(darwin_testcase.DarwinTest): > def test_factory_with_future_version(self): > port = self.make_port(options=MockOptions(webkit_test_runner=True), os_version=MacTest.FUTURE_VERSION, os_name='mac', port_name='mac') > self.assertEqual(port.driver_name(), 'WebKitTestRunner') >- self.assertEqual(port.version_name(), None) >+ self.assertEqual(port.version_name(), VersionNameMap.map(port.host.platform).to_name(MacPort.CURRENT_VERSION, platform=MacPort.port_name)) > > port = self.make_port(options=MockOptions(webkit_test_runner=False), os_version=MacTest.FUTURE_VERSION, os_name='mac', port_name='mac') > self.assertEqual(port.driver_name(), 'DumpRenderTree') >- self.assertEqual(port.version_name(), None) >+ self.assertEqual(port.version_name(), VersionNameMap.map(port.host.platform).to_name(MacPort.CURRENT_VERSION, platform=MacPort.port_name)) > > port = self.make_port(options=MockOptions(webkit_test_runner=False), os_version=MacTest.FUTURE_VERSION, os_name='mac', port_name='mac-wk2') > self.assertEqual(port.driver_name(), 'WebKitTestRunner') >- self.assertEqual(port.version_name(), None) >+ self.assertEqual(port.version_name(), VersionNameMap.map(port.host.platform).to_name(MacPort.CURRENT_VERSION, platform=MacPort.port_name)) > > port = self.make_port(options=MockOptions(webkit_test_runner=True), os_version=MacTest.FUTURE_VERSION, os_name='mac', port_name='mac-wk2') > self.assertEqual(port.driver_name(), 'WebKitTestRunner') >- self.assertEqual(port.version_name(), None) >+ self.assertEqual(port.version_name(), VersionNameMap.map(port.host.platform).to_name(MacPort.CURRENT_VERSION, platform=MacPort.port_name)) >+ >+ def test_factory_with_future_version_and_apple_additions(self): >+ with port_testcase.bind_mock_apple_additions(): >+ port = self.make_port(options=MockOptions(webkit_test_runner=True), os_version=MacTest.FUTURE_VERSION, os_name='mac', port_name='mac') >+ self.assertEqual(port.driver_name(), 'WebKitTestRunner') >+ self.assertEqual(port.version_name(), None) >+ >+ port = self.make_port(options=MockOptions(webkit_test_runner=False), os_version=MacTest.FUTURE_VERSION, os_name='mac', port_name='mac') >+ self.assertEqual(port.driver_name(), 'DumpRenderTree') >+ self.assertEqual(port.version_name(), None) >+ >+ port = self.make_port(options=MockOptions(webkit_test_runner=False), os_version=MacTest.FUTURE_VERSION, os_name='mac', port_name='mac-wk2') >+ self.assertEqual(port.driver_name(), 'WebKitTestRunner') >+ self.assertEqual(port.version_name(), None) >+ >+ port = self.make_port(options=MockOptions(webkit_test_runner=True), os_version=MacTest.FUTURE_VERSION, os_name='mac', port_name='mac-wk2') >+ self.assertEqual(port.driver_name(), 'WebKitTestRunner') >+ self.assertEqual(port.version_name(), None) > > def test_factory_with_portname_version(self): > port = self.make_port(options=MockOptions(webkit_test_runner=False), port_name='mac-mountainlion')
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
rniwa
:
review+
Actions:
View
|
Formatted Diff
|
Diff
Attachments on
bug 185054
:
339568
| 339574