OLD | NEW |
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 Loading... |
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 Loading... |
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)) |
OLD | NEW |