Changeset 80549 in webkit


Ignore:
Timestamp:
Mar 8, 2011 1:06:42 AM (13 years ago)
Author:
Patrick Gansterer
Message:

2011-03-08 Patrick Gansterer <Patrick Gansterer>

Reviewed by Adam Barth.

Add script_shell_command to WebKitPort
https://bugs.webkit.org/show_bug.cgi?id=55925

Add a central place where we generate the shell command from the script name.
This function will be used later to detect the correct script interpreter on Win32.

  • Scripts/webkitpy/common/config/ports.py:
  • Scripts/webkitpy/layout_tests/port/base.py:
  • Scripts/webkitpy/tool/steps/abstractstep.py:
  • Scripts/webkitpy/tool/steps/preparechangelog.py:
Location:
trunk/Tools
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r80537 r80549  
     12011-03-08  Patrick Gansterer  <paroga@webkit.org>
     2
     3        Reviewed by Adam Barth.
     4
     5        Add script_shell_command to WebKitPort
     6        https://bugs.webkit.org/show_bug.cgi?id=55925
     7
     8        Add a central place where we generate the shell command from the script name.
     9        This function will be used later to detect the correct script interpreter on Win32.
     10
     11        * Scripts/webkitpy/common/config/ports.py:
     12        * Scripts/webkitpy/layout_tests/port/base.py:
     13        * Scripts/webkitpy/tool/steps/abstractstep.py:
     14        * Scripts/webkitpy/tool/steps/preparechangelog.py:
     15
    1162011-03-07  Ojan Vafai  <ojan@chromium.org>
    217
  • trunk/Tools/Scripts/webkitpy/common/config/ports.py

    r74301 r80549  
    4141    def script_path(cls, script_name):
    4242        return os.path.join("Tools", "Scripts", script_name)
     43
     44    @classmethod
     45    def script_shell_command(cls, script_name):
     46        return [cls.script_path(script_name)]
    4347
    4448    @staticmethod
     
    7781    @classmethod
    7882    def update_webkit_command(cls):
    79         return [cls.script_path("update-webkit")]
    80 
    81     @classmethod
    82     def build_webkit_command(cls, build_style=None):
    83         command = [cls.script_path("build-webkit")]
     83        return cls.script_shell_command("update-webkit")
     84
     85    @classmethod
     86    def build_webkit_command(cls, build_style=None):
     87        command = cls.script_shell_command("build-webkit")
    8488        if build_style == "debug":
    8589            command.append("--debug")
     
    9094    @classmethod
    9195    def run_javascriptcore_tests_command(cls):
    92         return [cls.script_path("run-javascriptcore-tests")]
    93 
    94     @classmethod
    95     def run_webkit_tests_command(cls):
    96         return [cls.script_path("run-webkit-tests")]
     96        return cls.script_shell_command("run-javascriptcore-tests")
     97
     98    @classmethod
     99    def run_webkit_tests_command(cls):
     100        return cls.script_shell_command("run-webkit-tests")
    97101
    98102    @classmethod
    99103    def run_python_unittests_command(cls):
    100         return [cls.script_path("test-webkitpy")]
     104        return cls.script_shell_command("test-webkitpy")
    101105
    102106    @classmethod
    103107    def run_perl_unittests_command(cls):
    104         return [cls.script_path("test-webkitperl")]
     108        return cls.script_shell_command("test-webkitperl")
    105109
    106110    @classmethod
     
    227231    @classmethod
    228232    def run_webkit_tests_command(cls):
    229         return [
    230             cls.script_path("new-run-webkit-tests"),
    231             "--chromium",
    232             "--no-pixel-tests",
    233         ]
     233        command = cls.script_shell_command("new-run-webkit-tests")
     234        command.append("--chromium")
     235        command.append("--no-pixel-tests")
     236        return command
    234237
    235238    @classmethod
  • trunk/Tools/Scripts/webkitpy/layout_tests/port/base.py

    r80524 r80549  
    499499        return self._config.script_path(script_name)
    500500
     501    def script_shell_command(self, script_name):
     502        return self._config.script_shell_command(script_name)
     503
    501504    def path_to_test_expectations_file(self):
    502505        """Update the test expectations to the passed-in string.
  • trunk/Tools/Scripts/webkitpy/tool/steps/abstractstep.py

    r74639 r80549  
    4141    def _run_script(self, script_name, args=None, quiet=False, port=WebKitPort):
    4242        log("Running %s" % script_name)
    43         command = [port.script_path(script_name)]
     43        command = port.script_shell_command(script_name)
    4444        if args:
    4545            command.extend(args)
  • trunk/Tools/Scripts/webkitpy/tool/steps/preparechangelog.py

    r80211 r80549  
    6262            return
    6363        os.chdir(self._tool.scm().checkout_root)
    64         args = [self._tool.port().script_path("prepare-ChangeLog")]
     64        args = self._tool.port().script_shell_command("prepare-ChangeLog")
    6565        if state.get("bug_id"):
    6666            args.append("--bug=%s" % state["bug_id"])
Note: See TracChangeset for help on using the changeset viewer.