Changeset 45197 in webkit
- Timestamp:
- Jun 25, 2009 2:52:21 PM (15 years ago)
- Location:
- trunk/WebKitTools
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKitTools/ChangeLog
r45192 r45197 1 2009-06-25 Eric Seidel <eric@webkit.org> 2 3 Reviewed by Mark Rowe. 4 5 Call WebKitTools/Scripts scripts by their absolute paths 6 https://bugs.webkit.org/show_bug.cgi?id=26704 7 8 bugzilla-tool used to use whatever build-webkit was in your path. 9 That could end up building the wrong copy of WebKit. 10 11 * Scripts/bugzilla-tool: 12 * Scripts/modules/scm.py: 13 1 14 2009-06-25 Tor Arne Vestbø <tor.arne.vestbo@nokia.com> 2 15 -
trunk/WebKitTools/Scripts/bugzilla-tool
r45160 r45197 236 236 @staticmethod 237 237 def run_and_throw_if_fail(script_name): 238 build_webkit_process = subprocess.Popen(script_name , shell=True)238 build_webkit_process = subprocess.Popen(script_name) 239 239 return_code = build_webkit_process.wait() 240 240 if return_code: … … 242 242 243 243 @classmethod 244 def run_webkit_script(cls, script_name): 245 # We might need to pass scm into this function for scm.checkout_root 246 cls.run_and_throw_if_fail(os.path.join("WebKitTools", "Scripts", script_name)) 247 248 @classmethod 244 249 def build_webkit(cls): 245 cls.run_ and_throw_if_fail("build-webkit")250 cls.run_webkit_script("build-webkit") 246 251 247 252 @classmethod 248 253 def run_webkit_tests(cls): 249 cls.run_ and_throw_if_fail("run-webkit-tests")254 cls.run_webkit_script("run-webkit-tests") 250 255 251 256 @staticmethod -
trunk/WebKitTools/Scripts/modules/scm.py
r45160 r45197 71 71 return output 72 72 73 def script_path(self, script_name): 74 return os.path.join(self.checkout_root, "WebKitTools", "Scripts", script_name) 75 73 76 def ensure_clean_working_directory(self, force): 74 77 if not force and not self.working_directory_is_clean(): … … 93 96 # We should detect and handle that case. 94 97 curl_process = subprocess.Popen(['curl', patch['url']], stdout=subprocess.PIPE) 95 patch_apply_process = subprocess.Popen([ 'svn-apply', '--reviewer', patch['reviewer']], stdin=curl_process.stdout)98 patch_apply_process = subprocess.Popen([self.script_path('svn-apply'), '--reviewer', patch['reviewer']], stdin=curl_process.stdout) 96 99 97 100 return_code = patch_apply_process.wait() … … 189 192 190 193 def update_webkit(self): 191 self.run_command( "update-webkit")194 self.run_command(self.script_path("update-webkit")) 192 195 193 196 def status_command(self): … … 208 211 209 212 def create_patch_command(self): 210 return "svn-create-patch"213 return self.script_path("svn-create-patch") 211 214 212 215 def commit_with_message(self, message):
Note: See TracChangeset
for help on using the changeset viewer.