Fix a mis-named variable after r137621.
authordpranke@chromium.org <dpranke@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 13 Dec 2012 20:07:58 +0000 (20:07 +0000)
committerdpranke@chromium.org <dpranke@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 13 Dec 2012 20:07:58 +0000 (20:07 +0000)
https://bugs.webkit.org/show_bug.cgi?id=104871

Unreviewed, build fix.

* Scripts/webkitpy/layout_tests/views/buildbot_results.py:
(BuildBotPrinter.print_results):
* Scripts/webkitpy/layout_tests/views/buildbot_results_unittest.py:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@137634 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Tools/ChangeLog
Tools/Scripts/webkitpy/layout_tests/views/buildbot_results.py
Tools/Scripts/webkitpy/layout_tests/views/buildbot_results_unittest.py

index a388d29..a174f86 100644 (file)
@@ -1,5 +1,16 @@
 2012-12-13  Dirk Pranke  <dpranke@chromium.org>
 
+        Fix a mis-named variable after r137621.
+        https://bugs.webkit.org/show_bug.cgi?id=104871
+
+        Unreviewed, build fix.
+
+        * Scripts/webkitpy/layout_tests/views/buildbot_results.py:
+        (BuildBotPrinter.print_results):
+        * Scripts/webkitpy/layout_tests/views/buildbot_results_unittest.py:
+
+2012-12-13  Dirk Pranke  <dpranke@chromium.org>
+
         webkitpy: rename ResultSummary
         https://bugs.webkit.org/show_bug.cgi?id=104871
 
index ccb305c..d6ac5d0 100644 (file)
@@ -48,7 +48,7 @@ class BuildBotPrinter(object):
 
     def print_results(self, run_details):
         if self.debug_logging:
-            self.print_run_results(run_details.run_results)
+            self.print_run_results(run_details.initial_results)
         self.print_unexpected_results(run_details.summarized_results)
 
     def _print(self, msg):
index f08e653..e2d7dfe 100644 (file)
@@ -163,3 +163,13 @@ BUGX : failures/expected/timeout.html = TIMEOUT
         ur = get_unexpected_results(expected=False, passing=True, flaky=False)
         printer.print_unexpected_results(ur)
         self.assertNotEmpty(out)
+
+        printer, out = self.get_printer()
+        tests = ['passes/text.html', 'failures/expected/timeout.html', 'failures/expected/crash.html', 'failures/expected/audio.html']
+        expectations = ''
+        port = MockHost().port_factory.get('test')
+        paths, initial_results, exp = self.get_run_results(port, tests, expectations)
+        summarized_results = get_unexpected_results(expected=False, passing=True, flaky=False)
+        details = manager.RunDetails(summarized_results['num_regressions'], summarized_results, initial_results, None)
+        printer.print_results(details)
+        self.assertNotEmpty(out)