Changeset 80549 in webkit
- Timestamp:
- Mar 8, 2011 1:06:42 AM (13 years ago)
- Location:
- trunk/Tools
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r80537 r80549 1 2011-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 1 16 2011-03-07 Ojan Vafai <ojan@chromium.org> 2 17 -
trunk/Tools/Scripts/webkitpy/common/config/ports.py
r74301 r80549 41 41 def script_path(cls, script_name): 42 42 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)] 43 47 44 48 @staticmethod … … 77 81 @classmethod 78 82 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") 84 88 if build_style == "debug": 85 89 command.append("--debug") … … 90 94 @classmethod 91 95 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") 97 101 98 102 @classmethod 99 103 def run_python_unittests_command(cls): 100 return [cls.script_path("test-webkitpy")]104 return cls.script_shell_command("test-webkitpy") 101 105 102 106 @classmethod 103 107 def run_perl_unittests_command(cls): 104 return [cls.script_path("test-webkitperl")]108 return cls.script_shell_command("test-webkitperl") 105 109 106 110 @classmethod … … 227 231 @classmethod 228 232 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 234 237 235 238 @classmethod -
trunk/Tools/Scripts/webkitpy/layout_tests/port/base.py
r80524 r80549 499 499 return self._config.script_path(script_name) 500 500 501 def script_shell_command(self, script_name): 502 return self._config.script_shell_command(script_name) 503 501 504 def path_to_test_expectations_file(self): 502 505 """Update the test expectations to the passed-in string. -
trunk/Tools/Scripts/webkitpy/tool/steps/abstractstep.py
r74639 r80549 41 41 def _run_script(self, script_name, args=None, quiet=False, port=WebKitPort): 42 42 log("Running %s" % script_name) 43 command = [port.script_path(script_name)]43 command = port.script_shell_command(script_name) 44 44 if args: 45 45 command.extend(args) -
trunk/Tools/Scripts/webkitpy/tool/steps/preparechangelog.py
r80211 r80549 62 62 return 63 63 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") 65 65 if state.get("bug_id"): 66 66 args.append("--bug=%s" % state["bug_id"])
Note: See TracChangeset
for help on using the changeset viewer.