Changeset 271158 in webkit
- Timestamp:
- Jan 5, 2021, 10:33:43 AM (4 years ago)
- Location:
- trunk/Tools
- Files:
-
- 50 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r271154 r271158 1 2021-01-05 Alexey Proskuryakov <ap@apple.com> 2 3 Remove some unused variables from webkitpy 4 https://bugs.webkit.org/show_bug.cgi?id=220180 5 6 Reviewed by Aakash Jain, Sam Weinig and Jonathan Bedard. 7 8 * Scripts/webkitpy/benchmark_runner/webdriver_benchmark_runner.py: 9 * Scripts/webkitpy/benchmark_runner/webserver_benchmark_runner.py: 10 * Scripts/webkitpy/codegen/main.py: 11 * Scripts/webkitpy/common/checkout/changelog.py: 12 * Scripts/webkitpy/common/checkout/checkout.py: 13 * Scripts/webkitpy/common/checkout/scm/git.py: 14 * Scripts/webkitpy/common/checkout/scm/svn.py: 15 * Scripts/webkitpy/common/config/committers.py: 16 * Scripts/webkitpy/common/config/contributionareas.py: 17 * Scripts/webkitpy/common/message_pool.py: 18 * Scripts/webkitpy/common/net/buildbot/buildbot.py: 19 * Scripts/webkitpy/common/net/credentials.py: 20 * Scripts/webkitpy/common/system/crashlogs.py: 21 * Scripts/webkitpy/common/system/executive.py: 22 * Scripts/webkitpy/common/system/profiler.py: 23 * Scripts/webkitpy/common/system/user.py: 24 * Scripts/webkitpy/generate_xcfilelists_lib/application.py: 25 * Scripts/webkitpy/generate_xcfilelists_lib/generators.py: 26 * Scripts/webkitpy/layout_tests/controllers/manager.py: 27 * Scripts/webkitpy/layout_tests/controllers/single_test_runner.py: 28 * Scripts/webkitpy/layout_tests/servers/apache_http_server.py: 29 * Scripts/webkitpy/layout_tests/servers/http_server.py: 30 * Scripts/webkitpy/layout_tests/views/buildbot_results.py: 31 * Scripts/webkitpy/layout_tests/views/metered_stream.py: 32 * Scripts/webkitpy/performance_tests/perftest.py: 33 * Scripts/webkitpy/port/device_port.py: 34 * Scripts/webkitpy/port/factory.py: 35 * Scripts/webkitpy/port/leakdetector_valgrind.py: 36 * Scripts/webkitpy/port/server_process.py: 37 * Scripts/webkitpy/style/checkers/js.py: 38 * Scripts/webkitpy/tool/bot/layouttestresultsreader.py: 39 * Scripts/webkitpy/tool/bot/patchanalysistask.py: 40 * Scripts/webkitpy/tool/bot/queueengine.py: 41 * Scripts/webkitpy/tool/commands/download.py: 42 * Scripts/webkitpy/tool/commands/earlywarningsystem.py: 43 * Scripts/webkitpy/tool/commands/queues.py: 44 * Scripts/webkitpy/tool/commands/suggestnominations.py: 45 * Scripts/webkitpy/tool/commands/upload.py: 46 * Scripts/webkitpy/tool/multicommandtool.py: 47 * Scripts/webkitpy/tool/servers/rebaselineserver.py: 48 * Scripts/webkitpy/tool/steps/commit.py: 49 * Scripts/webkitpy/tool/steps/confirmdiff.py: 50 * Scripts/webkitpy/tool/steps/haslanded.py: 51 * Scripts/webkitpy/tool/steps/preparechangelog.py: 52 * Scripts/webkitpy/tool/steps/promptforbugortitle.py: 53 * Scripts/webkitpy/tool/steps/sortxcodeprojectfiles.py: 54 * Scripts/webkitpy/tool/steps/suggestreviewers_unittest.py: 55 * Scripts/webkitpy/w3c/test_exporter.py: 56 * Scripts/webkitpy/xcode/simulated_device.py: 57 1 58 2021-01-05 Sihui Liu <sihui_liu@appe.com> 2 59 -
trunk/Tools/Scripts/webkitpy/benchmark_runner/webdriver_benchmark_runner.py
r265866 r271158 19 19 def _run_one_test(self, web_root, test_file): 20 20 from selenium.webdriver.support.ui import WebDriverWait 21 result = None22 21 try: 23 22 url = 'file://{root}/{plan_name}/{test_file}'.format(root=web_root, plan_name=self._plan_name, test_file=test_file) -
trunk/Tools/Scripts/webkitpy/benchmark_runner/webserver_benchmark_runner.py
r266277 r271158 32 32 33 33 def _run_one_test(self, web_root, test_file): 34 result = None35 34 try: 36 35 self._http_server_driver.serve(web_root) -
trunk/Tools/Scripts/webkitpy/codegen/main.py
r225733 r271158 102 102 return self.generate_from_js_builtins(test_files, work_directory, framework_name=framework_name, combined_outputs=combined_outputs) 103 103 104 def wrappers_builtin_test(self, test_ name, test_files, work_directory):104 def wrappers_builtin_test(self, test_files, work_directory): 105 105 return self.generate_from_js_builtins(test_files, work_directory, framework_name="WebCore", generate_wrappers=True) 106 106 -
trunk/Tools/Scripts/webkitpy/common/checkout/changelog.py
r265077 r271158 322 322 try: 323 323 return next(cls.parse_entries_from_file(changelog_file)) 324 except StopIteration as e:324 except StopIteration: 325 325 return None 326 326 -
trunk/Tools/Scripts/webkitpy/common/checkout/checkout.py
r264949 r271158 156 156 try: 157 157 return parse_bug_id_from_changelog(self.commit_message_for_this_commit(git_commit, changed_files).message()) 158 except ScriptError as e:158 except ScriptError: 159 159 pass # We might not have ChangeLogs. 160 160 -
trunk/Tools/Scripts/webkitpy/common/checkout/scm/git.py
r265778 r271158 114 114 executive = executive or Executive() 115 115 return executive.run_command([cls.executable_name, 'rev-parse', '--is-inside-work-tree'], cwd=path, ignore_errors=True).rstrip() == "true" 116 except OSError as e:116 except OSError: 117 117 # The Windows bots seem to through a WindowsError when git isn't installed. 118 118 return False … … 123 123 executive = executive or Executive() 124 124 return executive.run_command([cls.executable_name, 'clone', '-v', url, directory], ignore_errors=True) 125 except OSError as e:125 except OSError: 126 126 return False 127 127 … … 387 387 try: 388 388 return int(string) 389 except ValueError as e:389 except ValueError: 390 390 return None 391 391 -
trunk/Tools/Scripts/webkitpy/common/checkout/scm/svn.py
r266267 r271158 103 103 exit_code = executive.run_command(svn_info_args, cwd=path, return_exit_code=True) 104 104 return (exit_code == 0) 105 except OSError as e:105 except OSError: 106 106 return False 107 107 … … 249 249 try: 250 250 log_output = self._run_svn(log_command, cwd=self.checkout_root) 251 except ScriptError as e:251 except ScriptError: 252 252 return [] 253 253 for line in log_output.splitlines(): -
trunk/Tools/Scripts/webkitpy/common/config/committers.py
r264949 r271158 214 214 215 215 for name, data in contributors.items(): 216 contributor = None217 216 status = data.get('status') 218 217 if status == "reviewer": -
trunk/Tools/Scripts/webkitpy/common/config/contributionareas.py
r246790 r271158 202 202 for file_path in touched_files: 203 203 split_file_path = self._split_path(file_path) 204 tokenized_file_path = None205 204 tokenized_file_path = sum([self._split_camelcase(token, lambda x: x.lower()) for token in split_file_path], []) 206 205 for area in self._contribution_areas: -
trunk/Tools/Scripts/webkitpy/common/message_pool.py
r254340 r271158 269 269 270 270 worker = self._worker 271 exception_msg = ""272 271 _log.debug("%s starting" % self.name) 273 272 … … 287 286 except queue.Empty: 288 287 assert False, '%s: ran out of messages in worker queue.' % self.name 289 except KeyboardInterrupt as e:288 except KeyboardInterrupt: 290 289 self._raise(sys.exc_info()) 291 except Exception as e:290 except Exception: 292 291 self._raise(sys.exc_info()) 293 292 finally: -
trunk/Tools/Scripts/webkitpy/common/net/buildbot/buildbot.py
r268925 r271158 138 138 try: 139 139 return form.find_control("username") 140 except Exception as e:140 except Exception: 141 141 return False 142 142 … … 437 437 def failure_map(self): 438 438 failure_map = FailureMap() 439 revision_to_failing_bots = {}440 439 for builder_status in self.builder_statuses(): 441 440 if builder_status["is_green"]: -
trunk/Tools/Scripts/webkitpy/common/net/credentials.py
r268673 r271158 60 60 return (Git.read_git_config(self.git_prefix + "username"), 61 61 Git.read_git_config(self.git_prefix + "password")) 62 except OSError as e:62 except OSError: 63 63 # Catch and ignore OSError exceptions such as "no such file 64 64 # or directory" (OSError errno 2), which imply that the Git -
trunk/Tools/Scripts/webkitpy/common/system/crashlogs.py
r264949 r271158 54 54 return self._find_newest_log_darwin(process_name, pid, include_errors, newer_than) 55 55 elif self._host.platform.is_win(): 56 return self._find_newest_log_win(p rocess_name, pid, include_errors, newer_than)56 return self._find_newest_log_win(pid, include_errors, newer_than) 57 57 return None 58 58 … … 101 101 return None 102 102 103 def _find_newest_log_win(self, p rocess_name, pid, include_errors, newer_than):103 def _find_newest_log_win(self, pid, include_errors, newer_than): 104 104 def is_crash_log(fs, dirpath, basename): 105 105 if self._crash_logs_to_skip and fs.join(dirpath, basename) in self._crash_logs_to_skip: -
trunk/Tools/Scripts/webkitpy/common/system/executive.py
r264949 r271158 298 298 running_pids.append(int(pid)) 299 299 self.pid_to_system_pid[int(pid)] = int(winpid) 300 except ValueError as e:300 except ValueError: 301 301 pass 302 302 else: … … 310 310 if process_name_filter(string_utils.decode(process_name, target_type=str)): 311 311 running_pids.append(int(pid)) 312 except ValueError as e:312 except ValueError: 313 313 pass 314 314 -
trunk/Tools/Scripts/webkitpy/common/system/profiler.py
r255243 r271158 71 71 name = None 72 72 73 def __init__(self, host, executable_path, output_dir , identifier=None):73 def __init__(self, host, executable_path, output_dir): 74 74 self._host = host 75 75 self._executable_path = executable_path … … 93 93 class SingleFileOutputProfiler(Profiler): 94 94 def __init__(self, host, executable_path, output_dir, output_suffix, identifier=None): 95 super(SingleFileOutputProfiler, self).__init__(host, executable_path, output_dir , identifier)95 super(SingleFileOutputProfiler, self).__init__(host, executable_path, output_dir) 96 96 # FIXME: Currently all reports are kept as test.*, until we fix that, search up to 1000 names before giving up. 97 97 self._output_path = self._host.workspace.find_unused_filename(self._output_dir, self._identifier, output_suffix, search_limit=1000) -
trunk/Tools/Scripts/webkitpy/common/system/user.py
r250375 r271158 108 108 else: 109 109 indices.append(int(value) - 1) 110 except ValueError as err:110 except ValueError: 111 111 continue 112 112 … … 115 115 try: 116 116 result = int(cls.prompt("Enter a number: ", raw_input=raw_input)) - 1 117 except ValueError as err:117 except ValueError: 118 118 continue 119 119 return list_items[result] … … 159 159 child_process = subprocess.Popen([pager], stdin=subprocess.PIPE) 160 160 child_process.communicate(input=message) 161 except IOError as e:161 except IOError: 162 162 pass 163 163 … … 175 175 webbrowser.get() 176 176 return True 177 except webbrowser.Error as e:177 except webbrowser.Error: 178 178 return False 179 179 -
trunk/Tools/Scripts/webkitpy/generate_xcfilelists_lib/application.py
r248106 r271158 121 121 try: 122 122 func = self.dispatch[args.command] 123 except KeyError as e:123 except KeyError: 124 124 raise util.InvalidCommandError(args.command) 125 125 … … 140 140 raise 141 141 142 except BaseException as e:142 except BaseException: 143 143 traceback.print_exc() 144 144 return os.EX_SOFTWARE … … 330 330 try: 331 331 generators = core_operation(generator, generators) 332 except BaseException as e:332 except BaseException: 333 333 # TODO: Turn the traceback into a string, and then allow 334 334 # this field to be pickled and printed by the calling -
trunk/Tools/Scripts/webkitpy/generate_xcfilelists_lib/generators.py
r269063 r271158 147 147 generator.application = self.application 148 148 generators.append(generator) 149 except EOFError as e:149 except EOFError: 150 150 break 151 151 return generators -
trunk/Tools/Scripts/webkitpy/layout_tests/controllers/manager.py
r268925 r271158 615 615 try: 616 616 response_json = json.loads(response_text) 617 except ValueError as error:617 except ValueError: 618 618 _log.error("JSON upload failed; failed to parse the response: %s", response_text) 619 619 continue -
trunk/Tools/Scripts/webkitpy/layout_tests/controllers/single_test_runner.py
r270953 r271158 195 195 """ 196 196 failures = [] 197 fs = self._filesystem198 197 if driver_output.timeout: 199 198 failures.append(test_failures.FailureTimeout(bool(reference_filename))) -
trunk/Tools/Scripts/webkitpy/layout_tests/servers/apache_http_server.py
r252475 r271158 91 91 # FIXME: We shouldn't be calling a protected method of _port_obj! 92 92 executable = self._port_obj._path_to_apache() 93 config_file_path = self._copy_apache_config_file( self.tests_dir,output_dir)93 config_file_path = self._copy_apache_config_file(output_dir) 94 94 95 95 start_cmd = [executable, … … 153 153 self._stop_cmd = stop_cmd 154 154 155 def _copy_apache_config_file(self, test_dir,output_dir):155 def _copy_apache_config_file(self, output_dir): 156 156 """Copy apache config file and returns the path to use. 157 157 Args: 158 test_dir: absolute path to the LayoutTests directory.159 158 output_dir: absolute path to the layout test results directory. 160 159 """ -
trunk/Tools/Scripts/webkitpy/layout_tests/servers/http_server.py
r252475 r271158 42 42 class Lighttpd(http_server_base.HttpServerBase): 43 43 44 def __init__(self, port_obj, output_dir, background=False,port=None,44 def __init__(self, port_obj, output_dir, port=None, 45 45 root=None, run_background=None, additional_dirs=None, 46 46 layout_tests_dir=None): … … 195 195 try: 196 196 self._remove_log_files(self._output_dir, log_prefix) 197 except OSError as e:197 except OSError: 198 198 _log.warning('Failed to remove old %s %s files' % (self._name, log_prefix)) 199 199 -
trunk/Tools/Scripts/webkitpy/layout_tests/views/buildbot_results.py
r269120 r271158 148 148 actual = result['actual'].split(" ") 149 149 expected = result['expected'].split(" ") 150 result = TestExpectations.EXPECTATIONS[key.lower()]151 150 # FIXME: clean this up once the old syntax is gone 152 151 new_expectations_list = [TestExpectationParser._inverted_expectation_tokens[exp] for exp in list(set(actual) | set(expected))] -
trunk/Tools/Scripts/webkitpy/layout_tests/views/metered_stream.py
r254340 r271158 125 125 126 126 def _erase_last_partial_line(self): 127 num_chars = len(self._last_partial_line)128 127 self._stream.write(self._erasure(self._last_partial_line)) 129 128 self._last_partial_line = '' -
trunk/Tools/Scripts/webkitpy/performance_tests/perftest.py
r260053 r271158 186 186 return False 187 187 188 current_metric = None189 188 for line in re.split('\n', output.text): 190 189 description_match = self._description_regex.match(line) -
trunk/Tools/Scripts/webkitpy/port/device_port.py
r269990 r271158 251 251 252 252 version = self.device_version() 253 version_name = None254 253 for table in [INTERNAL_TABLE, PUBLIC_TABLE]: 255 254 version_name = VersionNameMap.map(self.host.platform).to_name(version, platform=device_type.software_variant.lower(), table=table) -
trunk/Tools/Scripts/webkitpy/port/factory.py
r263610 r271158 128 128 self._host = host 129 129 130 def _default_port(self , options):130 def _default_port(self): 131 131 platform = self._host.platform 132 132 if platform.is_linux() or platform.is_freebsd(): … … 142 142 port_name is None, this routine attempts to guess at the most 143 143 appropriate port on this platform.""" 144 port_name = port_name or self._default_port( options)144 port_name = port_name or self._default_port() 145 145 146 146 classes = [] -
trunk/Tools/Scripts/webkitpy/port/leakdetector_valgrind.py
r264949 r271158 110 110 self._backtraces.append([description, frames]) 111 111 description = None 112 stack = None113 frames = None114 112 elif description and node.localName != None: 115 113 # The lastest description has no stack, e.g. "Address 0x28 is unknown". … … 223 221 parsed_string = parseString(leaks_output) 224 222 except ExpatError as e: 225 parse_failed = True226 223 _log.error("could not parse %s: %s" % (string_utils.decode(leaks_output, target_type=str), e)) 227 224 return -
trunk/Tools/Scripts/webkitpy/port/server_process.py
r264949 r271158 187 187 self._proc.stdin.write(string_utils.encode(bytes)) 188 188 self._proc.stdin.flush() 189 except (IOError, ValueError) as e:189 except (IOError, ValueError): 190 190 self.stop(0.0) 191 191 # stop() calls _reset(), so we have to set crashed to True after calling stop() … … 315 315 self._crashed = True 316 316 self._error += data 317 except IOError as e:317 except IOError: 318 318 # We can ignore the IOErrors because we will detect if the subporcess crashed 319 319 # the next time through the loop in _read() -
trunk/Tools/Scripts/webkitpy/style/checkers/js.py
r252440 r271158 59 59 60 60 def check(self, lines): 61 in_multiline_comment = False62 61 line_number = 0 63 62 for line in lines: … … 66 65 67 66 if (line.endswith("*/")): 68 in_multiline_comment = False69 67 continue 70 68 71 69 if (line.startswith("/*") or line.startswith("*")): 72 in_multiline_comment = True73 70 continue 74 71 -
trunk/Tools/Scripts/webkitpy/tool/bot/layouttestresultsreader.py
r225733 r271158 50 50 try: 51 51 return self._host.filesystem.read_text_file(path) 52 except IOError as e: # File does not exist or can't be read.52 except IOError: # File does not exist or can't be read. 53 53 return None 54 54 -
trunk/Tools/Scripts/webkitpy/tool/bot/patchanalysistask.py
r263181 r271158 243 243 return True 244 244 second_results = self._delegate.test_results() 245 second_script_error = self._script_error246 245 if second_results is None: 247 246 return False -
trunk/Tools/Scripts/webkitpy/tool/bot/queueengine.py
r261408 r271158 113 113 message = "Unexpected failure when processing patch! Please file a bug against webkit-patch.\n%s" % e.message_with_output(output_limit=5000) 114 114 self._delegate.handle_unexpected_error(work_item, message) 115 except TerminateQueue as e:115 except TerminateQueue: 116 116 self._stopping("TerminateQueue exception received.") 117 117 return 0 118 except KeyboardInterrupt as e:118 except KeyboardInterrupt: 119 119 self._stopping("User terminated queue.") 120 120 return 1 121 except Exception as e:121 except Exception: 122 122 traceback.print_exc() 123 123 # Don't try tell the status bot, in case telling it causes an exception. -
trunk/Tools/Scripts/webkitpy/tool/commands/download.py
r259212 r271158 193 193 194 194 def __init__(self): 195 options = []196 195 self._prepare_sequence = StepSequence(self.prepare_steps) 197 196 self._main_sequence = StepSequence(self.main_steps) -
trunk/Tools/Scripts/webkitpy/tool/commands/earlywarningsystem.py
r264949 r271158 96 96 succeeded = task.run() 97 97 return succeeded 98 except PatchIsNotValid as error:98 except PatchIsNotValid: 99 99 return False 100 except UnableToApplyPatch as e:100 except UnableToApplyPatch: 101 101 return False 102 except PatchIsNotApplicable as e:102 except PatchIsNotApplicable: 103 103 return False 104 104 except ScriptError as e: -
trunk/Tools/Scripts/webkitpy/tool/commands/queues.py
r264949 r271158 63 63 try: 64 64 self._tool.bugs.add_cc_to_bug(bug_id, self.watchers) 65 except Exception as e:65 except Exception: 66 66 traceback.print_exc() 67 67 _log.error("Failed to CC watchers.") -
trunk/Tools/Scripts/webkitpy/tool/commands/suggestnominations.py
r265077 r271158 214 214 try: 215 215 self._count_commit(self._parse_commit_message(commit_message), analysis) 216 except CommitLogError as exception:216 except CommitLogError: 217 217 continue 218 218 return analysis['counters_by_email'] … … 264 264 if author_email != counter['latest_email']: 265 265 continue 266 contributor = self._committer_list.contributor_by_email(author_email)267 266 author_name = counter['latest_name'] 268 267 patch_count = counter['count'] -
trunk/Tools/Scripts/webkitpy/tool/commands/upload.py
r237037 r271158 82 82 83 83 def execute(self, options, args, tool): 84 committers = CommitterList()85 84 for bug_id in tool.bugs.queries.fetch_bug_ids_from_pending_commit_list(): 86 85 bug = self._tool.bugs.fetch_bug(bug_id) … … 478 477 commit_id = commit_ids[0] 479 478 480 bug_title = ""481 comment_text = ""482 479 if options.prompt: 483 480 (bug_title, comment_text) = self.prompt_for_bug_title_and_comment() … … 499 496 500 497 def create_bug_from_patch(self, options, args, tool): 501 bug_title = ""502 comment_text = ""503 498 if options.prompt: 504 499 (bug_title, comment_text) = self.prompt_for_bug_title_and_comment() … … 509 504 510 505 diff = tool.scm().create_patch(options.git_commit) 511 bug_id =tool.bugs.create_bug(bug_title, comment_text, options.component, diff, "Patch", cc=options.cc, mark_for_review=options.review, mark_for_commit_queue=options.request_commit)506 tool.bugs.create_bug(bug_title, comment_text, options.component, diff, "Patch", cc=options.cc, mark_for_review=options.review, mark_for_commit_queue=options.request_commit) 512 507 513 508 def prompt_for_bug_title_and_comment(self): -
trunk/Tools/Scripts/webkitpy/tool/multicommandtool.py
r253128 r271158 305 305 result = command.check_arguments_and_execute(options, args, self) 306 306 break 307 except TryAgain as e:307 except TryAgain: 308 308 pass 309 309 -
trunk/Tools/Scripts/webkitpy/tool/servers/rebaselineserver.py
r253128 r271158 72 72 scm = test_config.scm 73 73 layout_tests_directory = test_config.layout_tests_directory 74 results_directory = test_config.results_directory75 74 target_expectations_directory = filesystem.join( 76 75 layout_tests_directory, 'platform', baseline_target, test_directory) … … 179 178 def platform_from_directory(self, directory): 180 179 return self._platforms_by_directory[directory] 181 182 test_path = test_config.filesystem.join(test_config.layout_tests_directory, test_file)183 180 184 181 host = test_config.host -
trunk/Tools/Scripts/webkitpy/tool/steps/commit.py
r225733 r271158 62 62 try: 63 63 self._tool.executive.run_and_throw_if_fail(self._tool.deprecated_port().check_webkit_style_command() + args, cwd=self._tool.scm().checkout_root) 64 except ScriptError as e:64 except ScriptError: 65 65 if self._options.non_interactive: 66 66 raise -
trunk/Tools/Scripts/webkitpy/tool/steps/confirmdiff.py
r253128 r271158 63 63 # file alive until the user has had a chance to confirm the diff. 64 64 return pretty_diff_file 65 except ScriptError as e:65 except ScriptError: 66 66 _log.warning("PrettyPatch failed. :(") 67 except OSError as e:67 except OSError: 68 68 _log.warning("PrettyPatch unavailable.") 69 69 -
trunk/Tools/Scripts/webkitpy/tool/steps/haslanded.py
r264949 r271158 82 82 return executive.run_command( 83 83 ["interdiff", diff1_patch.name, diff2_patch.name], decode_output=False) 84 except ScriptError as e:84 except ScriptError: 85 85 _log.warning("Unable to find interdiff util (part of GNU difftools package) which is required.") 86 86 raise -
trunk/Tools/Scripts/webkitpy/tool/steps/preparechangelog.py
r264455 r271158 126 126 try: 127 127 output = self._tool.executive.run_and_throw_if_fail(args, self._options.quiet, cwd=self._tool.scm().checkout_root) 128 except ScriptError as e:128 except ScriptError: 129 129 _log.error("Unable to prepare ChangeLogs.") 130 130 sys.exit(1) -
trunk/Tools/Scripts/webkitpy/tool/steps/promptforbugortitle.py
r253128 r271158 55 55 try: 56 56 state["bug_id"] = int(user_response) 57 except ValueError as TypeError:57 except ValueError: 58 58 parsed_url = None 59 59 try: -
trunk/Tools/Scripts/webkitpy/tool/steps/sortxcodeprojectfiles.py
r225733 r271158 54 54 output = self._tool.executive.run_and_throw_if_fail(args, self._options.quiet, cwd=self._tool.scm().checkout_root) 55 55 self.did_modify_checkout(state) 56 except ScriptError as e:56 except ScriptError: 57 57 _log.error("Unable to sort modified xcode projects.") 58 58 sys.exit(1) -
trunk/Tools/Scripts/webkitpy/tool/steps/suggestreviewers_unittest.py
r265883 r271158 46 46 47 47 def test_basic(self): 48 capture = OutputCapture()49 48 step = SuggestReviewers(MockTool(), MockOptions(suggest_reviewers=True, git_commit=None)) 50 49 with OutputCapture(level=logging.INFO) as captured: -
trunk/Tools/Scripts/webkitpy/w3c/test_exporter.py
r265750 r271158 240 240 try: 241 241 response = self._host.web.request(method='GET', url=url, data=None, headers=headers) 242 except HTTPError as e:242 except HTTPError: 243 243 raise Exception("OAuth token is not valid") 244 244 data = json.load(response) … … 255 255 256 256 def _ensure_wpt_repository(self, url, wpt_repository_directory, gitClass): 257 git = None258 257 if not self._filesystem.exists(wpt_repository_directory): 259 258 _log.info('Cloning %s into %s...' % (url, wpt_repository_directory)) -
trunk/Tools/Scripts/webkitpy/xcode/simulated_device.py
r268460 r271158 638 638 _log.debug(error.message_with_output()) 639 639 640 output = None641 642 640 with Timeout(timeout, handler=RuntimeError(u'Timed out waiting for process to open {} on {}'.format(bundle_id, self.udid)), patch=False): 643 641 while True:
Note:
See TracChangeset
for help on using the changeset viewer.