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

Side by Side Diff: third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/views/buildbot_results.py

Issue 2578213005: Use underscores to separate words in filenames in webkitpy. (Closed)
Patch Set: Fix check for attribute in output_capture.py. Created 4 years 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) 2012 Google Inc. All rights reserved. 1 # Copyright (C) 2012 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 12 matching lines...) Expand all
23 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 26 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 28
29 29
30 from webkitpy.layout_tests.models import test_expectations 30 from webkitpy.layout_tests.models import test_expectations
31 from webkitpy.layout_tests.models.test_expectations import TestExpectations, Tes tExpectationLine 31 from webkitpy.layout_tests.models.test_expectations import TestExpectations, Tes tExpectationLine
32 32
33 from webkitpy.common.net.layouttestresults import LayoutTestResults 33 from webkitpy.common.net.layout_test_results import LayoutTestResults
34 34
35 35
36 class BuildBotPrinter(object): 36 class BuildBotPrinter(object):
37 # This output is parsed by buildbots and must only be changed in coordinatio n with buildbot scripts (see webkit.org's 37 # This output is parsed by buildbots and must only be changed in coordinatio n with buildbot scripts (see webkit.org's
38 # Tools/BuildSlaveSupport/build.webkit.org-config/master.cfg: RunWebKitTests ._parseNewRunWebKitTestsOutput 38 # Tools/BuildSlaveSupport/build.webkit.org-config/master.cfg: RunWebKitTests ._parseNewRunWebKitTestsOutput
39 # and chromium.org's buildbot/master.chromium/scripts/master/log_parser/webk it_test_command.py). 39 # and chromium.org's buildbot/master.chromium/scripts/master/log_parser/webk it_test_command.py).
40 40
41 def __init__(self, stream, debug_logging): 41 def __init__(self, stream, debug_logging):
42 self.stream = stream 42 self.stream = stream
43 self.debug_logging = debug_logging 43 self.debug_logging = debug_logging
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 for test in tests: 157 for test in tests:
158 result = test_results.result_for_test(test) 158 result = test_results.result_for_test(test)
159 actual = result.actual_results().split(" ") 159 actual = result.actual_results().split(" ")
160 expected = result.expected_results().split(" ") 160 expected = result.expected_results().split(" ")
161 new_expectations_list = [TestExpectationLine.inverted_expect ation_tokens[exp] for exp in actual] 161 new_expectations_list = [TestExpectationLine.inverted_expect ation_tokens[exp] for exp in actual]
162 self._print(" %s [ %s ]" % (test, " ".join(new_expectations _list))) 162 self._print(" %s [ %s ]" % (test, " ".join(new_expectations _list)))
163 self._print("") 163 self._print("")
164 164
165 if len(summarized_results['tests']) and self.debug_logging: 165 if len(summarized_results['tests']) and self.debug_logging:
166 self._print("%s" % ("-" * 78)) 166 self._print("%s" % ("-" * 78))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698