| Index: sky/tools/webkitpy/layout_tests/port/base.py
|
| diff --git a/sky/tools/webkitpy/layout_tests/port/base.py b/sky/tools/webkitpy/layout_tests/port/base.py
|
| index 18f0303050faa011936d277ae64b9e06ecde411a..9227ac66ad8f23eae644be168942ec75b701cf6c 100644
|
| --- a/sky/tools/webkitpy/layout_tests/port/base.py
|
| +++ b/sky/tools/webkitpy/layout_tests/port/base.py
|
| @@ -1159,7 +1159,17 @@ class Port(object):
|
| def test_configuration(self):
|
| """Returns the current TestConfiguration for the port."""
|
| if not self._test_configuration:
|
| - self._test_configuration = TestConfiguration(self._version, self._architecture, self._options.configuration.lower())
|
| + gn_args = self._executive.run_command([
|
| + 'gn', 'args',
|
| + self._build_path_with_configuration(self._options.configuration),
|
| + '--list', '--short'])
|
| +
|
| + if 'is_debug = true' in gn_args:
|
| + configuration = 'debug'
|
| + else:
|
| + configuration = 'release'
|
| +
|
| + self._test_configuration = TestConfiguration(self._version, self._architecture, configuration)
|
| return self._test_configuration
|
|
|
| # FIXME: Belongs on a Platform object.
|
|
|