On 2015/06/22 22:58:05, Dirk Pranke wrote: > https://codereview.chromium.org/1201873002/diff/20001/Tools/Scripts/webkitpy/layout_tests/port/port_testcase.py#newcode427 > Tools/Scripts/webkitpy/layout_tests/port/port_testcase.py:427: > self.assertEqual(port._apache_config_file_name_for_platform(), config_file) > These ...
4 years, 10 months ago
(2015-06-23 09:03:21 UTC)
#4
On 2015/06/22 22:58:05, Dirk Pranke wrote:
>
https://codereview.chromium.org/1201873002/diff/20001/Tools/Scripts/webkitpy/...
> Tools/Scripts/webkitpy/layout_tests/port/port_testcase.py:427:
> self.assertEqual(port._apache_config_file_name_for_platform(), config_file)
> These tests will be run on every test case for every port; perhaps they should
> be moved to unittests for PlatformInfo instead, now that the implementation
code
> is not in port/base.py ?
The test "helper" tests the _apache_config_file_name_for_platform method, which
is still implemented in port/base.py. The only code that moved is how we detect
which distribution we're running. Those tests moved as well, but I think we
still want to keep this test here. Or did I misunderstand your comment?
Dirk Pranke
On 2015/06/23 09:03:21, ingemara wrote: > On 2015/06/22 22:58:05, Dirk Pranke wrote: > > > ...
4 years, 10 months ago
(2015-06-23 19:13:17 UTC)
#5
On 2015/06/23 09:03:21, ingemara wrote:
> On 2015/06/22 22:58:05, Dirk Pranke wrote:
> >
>
https://codereview.chromium.org/1201873002/diff/20001/Tools/Scripts/webkitpy/...
> > Tools/Scripts/webkitpy/layout_tests/port/port_testcase.py:427:
> > self.assertEqual(port._apache_config_file_name_for_platform(), config_file)
> > These tests will be run on every test case for every port; perhaps they
should
> > be moved to unittests for PlatformInfo instead, now that the implementation
> code
> > is not in port/base.py ?
>
> The test "helper" tests the _apache_config_file_name_for_platform method,
which
> is still implemented in port/base.py. The only code that moved is how we
detect
> which distribution we're running. Those tests moved as well, but I think we
> still want to keep this test here. Or did I misunderstand your comment?
Fair enough. It seems a bit silly to test the linux distros and config files for
non-linux ports.
I suppose we could move at least some of these tests into linux_unittest.py, but
it's probably not worth it.
Dirk Pranke
lgtm.
4 years, 10 months ago
(2015-06-23 19:13:38 UTC)
#6
lgtm.
ingemara
The CQ bit was checked by ingemara@opera.com
4 years, 10 months ago
(2015-06-24 07:09:41 UTC)
#7
Issue 1201873002: Move LayoutTest Linux distribution detection to PlatformInfo
(Closed)
Created 4 years, 10 months ago by ingemara
Modified 4 years, 10 months ago
Reviewers: ojan, Dirk Pranke
Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Comments: 2