Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(384)

Side by Side Diff: third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/rebaseline.py

Issue 1846093002: Revert of Remove unused imports in webkitpy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Copyright (c) 2010 Google Inc. All rights reserved. 1 # Copyright (c) 2010 Google Inc. All rights reserved.
2 # 2 #
3 # Redistribution and use in source and binary forms, with or without 3 # Redistribution and use in source and binary forms, with or without
4 # modification, are permitted provided that the following conditions are 4 # modification, are permitted provided that the following conditions are
5 # met: 5 # met:
6 # 6 #
7 # * Redistributions of source code must retain the above copyright 7 # * Redistributions of source code must retain the above copyright
8 # notice, this list of conditions and the following disclaimer. 8 # notice, this list of conditions and the following disclaimer.
9 # * Redistributions in binary form must reproduce the above 9 # * Redistributions in binary form must reproduce the above
10 # copyright notice, this list of conditions and the following disclaimer 10 # copyright notice, this list of conditions and the following disclaimer
(...skipping 24 matching lines...) Expand all
35 import threading 35 import threading
36 import time 36 import time
37 import traceback 37 import traceback
38 import urllib 38 import urllib
39 import urllib2 39 import urllib2
40 40
41 from webkitpy.common.checkout.baselineoptimizer import BaselineOptimizer 41 from webkitpy.common.checkout.baselineoptimizer import BaselineOptimizer
42 from webkitpy.common.memoized import memoized 42 from webkitpy.common.memoized import memoized
43 from webkitpy.common.system.executive import ScriptError 43 from webkitpy.common.system.executive import ScriptError
44 from webkitpy.layout_tests.controllers.test_result_writer import TestResultWrite r 44 from webkitpy.layout_tests.controllers.test_result_writer import TestResultWrite r
45 from webkitpy.layout_tests.models import test_failures
45 from webkitpy.layout_tests.models.test_expectations import TestExpectations, BAS ELINE_SUFFIX_LIST, SKIP 46 from webkitpy.layout_tests.models.test_expectations import TestExpectations, BAS ELINE_SUFFIX_LIST, SKIP
46 from webkitpy.layout_tests.port import builders 47 from webkitpy.layout_tests.port import builders
47 from webkitpy.layout_tests.port import factory 48 from webkitpy.layout_tests.port import factory
48 from webkitpy.tool.multicommandtool import AbstractDeclarativeCommand 49 from webkitpy.tool.multicommandtool import AbstractDeclarativeCommand
49 50
50 51
51 _log = logging.getLogger(__name__) 52 _log = logging.getLogger(__name__)
52 53
53 54
54 # FIXME: Should TestResultWriter know how to compute this string? 55 # FIXME: Should TestResultWriter know how to compute this string?
(...skipping 951 matching lines...) Expand 10 before | Expand all | Expand 10 after
1006 self._tool.scm().checkout_branch(old_branch_name_or_ref) 1007 self._tool.scm().checkout_branch(old_branch_name_or_ref)
1007 else: 1008 else:
1008 self._log_queue.put(self.QUIT_LOG) 1009 self._log_queue.put(self.QUIT_LOG)
1009 log_thread.join() 1010 log_thread.join()
1010 1011
1011 def execute(self, options, args, tool): 1012 def execute(self, options, args, tool):
1012 self._verbose = options.verbose 1013 self._verbose = options.verbose
1013 while True: 1014 while True:
1014 self._do_one_rebaseline() 1015 self._do_one_rebaseline()
1015 time.sleep(self.SLEEP_TIME_IN_SECONDS) 1016 time.sleep(self.SLEEP_TIME_IN_SECONDS)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698