12011-06-27 Eric Seidel <eric@webkit.org>
2
3 Reviewed by NOBODY (OOPS!).
4
5 Simplify skipped file finding in preparation for adding wk2 skipped list fallback
6 https://bugs.webkit.org/show_bug.cgi?id=63501
7
8 The goal was to add support for wk2 skipped lists.
9 However, I found that our skipped list computation was a
10 manual hack (which only worked for the mac port).
11
12 So I fixed a FIXME to move the skipped list finding
13 into WebKitPort instead of MacPort.
14 Doing so required the concept of a "port_name", since previously
15 the only name accessible from a port object was name()
16 which includes many things beyond "mac" or "chromium", etc.
17
18 Eventually I believe we'll want to re-think the way that we pass
19 in a port_name argument to Port subclasses and expect them to parse
20 it. But for now I just added a cls.port_name variable which contains
21 the static information needed to compute wk2 names as well as
22 compute Skipped list fallback which works for Mac/Win/Qt and Gtk.
23
24 In order to test my new _skipped_file_search_paths method, I
25 fixed another FIXME by making it return relative paths.
26
27 I also fixed the test_expectations_path code in WebKitPort to use port_name.
28 It was using name() which would return PORT-VERSION so MacPort was overriding
29 it to use just PORT. After fixing test_expectations_path to use port_name
30 (and making it aware of webkit2) I was able to remove the MacPort implementation.
31
32 * Scripts/webkitpy/layout_tests/port/base.py:
33 - Add port_name() to access "mac", since name() returns "mac-leopard" etc.
34 - Document that real_name() seems to have no purpose.
35 * Scripts/webkitpy/layout_tests/port/chromium_linux.py:
36 - Add _parse_port_name(), eventually we might call this from WebKitPort directly.
37 * Scripts/webkitpy/layout_tests/port/chromium_mac.py:
38 - Add _parse_port_name.
39 * Scripts/webkitpy/layout_tests/port/chromium_win.py:
40 - Add _parse_port_name.
41 * Scripts/webkitpy/layout_tests/port/gtk.py:
42 * Scripts/webkitpy/layout_tests/port/mac.py:
43 - Move Skipped-file finding code down to WebKitPort
44 * Scripts/webkitpy/layout_tests/port/mac_unittest.py:
45 * Scripts/webkitpy/layout_tests/port/qt.py:
46 * Scripts/webkitpy/layout_tests/port/webkit.py:
47 * Scripts/webkitpy/layout_tests/port/webkit_unittest.py:
48