Changeset 57398 in webkit


Ignore:
Timestamp:
Apr 9, 2010 7:17:07 PM (14 years ago)
Author:
abarth@webkit.org
Message:

2010-04-09 Adam Barth <abarth@webkit.org>

Reviewed by Eric Seidel.

new-run-webkit-tests --release fails to build release DRT when global configuration is Debug
https://bugs.webkit.org/show_bug.cgi?id=37376

We need to explicitly pass the --release flag. I bet there are more
instances of this bug.

  • Scripts/webkitpy/layout_tests/port/base.py:
  • Scripts/webkitpy/layout_tests/port/mac.py:
Location:
trunk/WebKitTools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKitTools/ChangeLog

    r57395 r57398  
     12010-04-09  Adam Barth  <abarth@webkit.org>
     2
     3        Reviewed by Eric Seidel.
     4
     5        new-run-webkit-tests --release fails to build release DRT when global configuration is Debug
     6        https://bugs.webkit.org/show_bug.cgi?id=37376
     7
     8        We need to explicitly pass the --release flag.  I bet there are more
     9        instances of this bug.
     10
     11        * Scripts/webkitpy/layout_tests/port/base.py:
     12        * Scripts/webkitpy/layout_tests/port/mac.py:
     13
    1142010-04-09  Tony Chang  <tony@chromium.org>
    215
  • trunk/WebKitTools/Scripts/webkitpy/layout_tests/port/base.py

    r57257 r57398  
    5151    """Abstract class for Port-specific hooks for the layout_test package.
    5252    """
     53
     54    @staticmethod
     55    def flag_from_configuration(configuration):
     56        flags_by_configuration = {
     57            "Debug": "--debug",
     58            "Release": "--release",
     59        }
     60        return flags_by_configuration[configuration]
    5361
    5462    def __init__(self, port_name=None, options=None):
  • trunk/WebKitTools/Scripts/webkitpy/layout_tests/port/mac.py

    r57290 r57398  
    8282
    8383    def check_build(self, needs_http):
    84         build_drt_command = [self.script_path("build-dumprendertree")]
    85         if self._options.configuration == "Debug":
    86             build_drt_command.append('--debug')
     84        build_drt_command = [
     85            self.script_path("build-dumprendertree"),
     86            self.flag_from_configuration(self._options.configuration),
     87        ]
    8788        if executive.run_command(build_drt_command, return_exit_code=True):
    8889            return False
Note: See TracChangeset for help on using the changeset viewer.