RESOLVED FIXED 53356
test-webkitpy: fix webkitpy.layout_tests.port.mac_unittest.MacTest.test_skipped_file_paths
https://bugs.webkit.org/show_bug.cgi?id=53356
Summary test-webkitpy: fix webkitpy.layout_tests.port.mac_unittest.MacTest.test_skipp...
Dirk Pranke
Reported 2011-01-28 16:56:31 PST
test-webkitpy: fix webkitpy.layout_tests.port.mac_unittest.MacTest.test_skipped_file_paths
Attachments
Patch (2.40 KB, patch)
2011-01-28 16:57 PST, Dirk Pranke
no flags
make version-independent per review feedback from mihaip (3.15 KB, patch)
2011-01-28 17:54 PST, Dirk Pranke
mihaip: review+
Dirk Pranke
Comment 1 2011-01-28 16:57:17 PST
Dirk Pranke
Comment 2 2011-01-28 17:01:27 PST
This is one way to fix the test that adam disabled in r76428. It takes the approach that this is a platform-dependent "integration test" and will work correctly for the version of the Mac it is running on. An alternative would be to rewrite this test to be version-independent and simply compare against what we think the list of skipped files is supposed to be for whatever versions we wish to support. I don't have a strong leaning either way. Thoughts?
Mihai Parparita
Comment 3 2011-01-28 17:31:16 PST
Comment on attachment 80526 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=80526&action=review > Tools/Scripts/webkitpy/layout_tests/port/mac_unittest.py:46 > # FIXME: This test does not appear to be correct. It seems to receive Should remove this comment. > Tools/Scripts/webkitpy/layout_tests/port/mac_unittest.py:60 > + expected_paths.append('/LayoutTests/platform/mac' + port.version() + '/Skipped') Assuming that we had complex fallback logic (e.g. mac-snowleopard falls back on mac-leopard, but mac-leopard doesn't fall back mac-tiger), then it seems like we'd want to force port.version() to fixed value(s), so that we could get full coverage of those combinations regardless of what platform the test is run on. However, we don't actually have complex fallback logic. Still, I think overriding version() is the way to go.
Dirk Pranke
Comment 4 2011-01-28 17:54:05 PST
Created attachment 80532 [details] make version-independent per review feedback from mihaip
Dirk Pranke
Comment 5 2011-01-28 17:54:50 PST
(In reply to comment #3) > Still, I think overriding version() is the way to go. Ok.
Mihai Parparita
Comment 6 2011-01-28 17:56:10 PST
Comment on attachment 80532 [details] make version-independent per review feedback from mihaip View in context: https://bugs.webkit.org/attachment.cgi?id=80532&action=review > Tools/ChangeLog:8 > + handles the version of the platform it is running on correctly. ChangeLog should be updated since the platform that it's running on no longer matters.
Dirk Pranke
Comment 7 2011-01-28 18:08:24 PST
Note You need to log in before you can comment on or make changes to this bug.