nrwt: remove result_summary.total_tests_by_expectation
authordpranke@chromium.org <dpranke@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 12 Dec 2012 05:34:04 +0000 (05:34 +0000)
committerdpranke@chromium.org <dpranke@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 12 Dec 2012 05:34:04 +0000 (05:34 +0000)
https://bugs.webkit.org/show_bug.cgi?id=104756

Reviewed by Eric Seidel.

This field wasn't being used by anything.

* Scripts/webkitpy/layout_tests/models/result_summary.py:
(ResultSummary.__init__):

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

Tools/ChangeLog
Tools/Scripts/webkitpy/layout_tests/models/result_summary.py

index 5129f53..ee73ec4 100644 (file)
@@ -1,5 +1,17 @@
 2012-12-11  Dirk Pranke  <dpranke@chromium.org>
 
+        nrwt: remove result_summary.total_tests_by_expectation
+        https://bugs.webkit.org/show_bug.cgi?id=104756
+
+        Reviewed by Eric Seidel.
+
+        This field wasn't being used by anything.
+
+        * Scripts/webkitpy/layout_tests/models/result_summary.py:
+        (ResultSummary.__init__):
+
+2012-12-11  Dirk Pranke  <dpranke@chromium.org>
+
         garden-o-matic doesn't know about reftests
         https://bugs.webkit.org/show_bug.cgi?id=101976
 
index fa25e72..d39374a 100644 (file)
@@ -40,7 +40,6 @@ class ResultSummary(object):
         self.unexpected_failures = 0
         self.unexpected_crashes = 0
         self.unexpected_timeouts = 0
-        self.total_tests_by_expectation = {}
         self.tests_by_expectation = {}
         self.tests_by_timeline = {}
         self.results = {}  # Map of test name to the last result for the test.
@@ -51,14 +50,12 @@ class ResultSummary(object):
         self.expected_skips = 0
         for expectation in TestExpectations.EXPECTATIONS.values():
             self.tests_by_expectation[expectation] = set()
-            self.total_tests_by_expectation[expectation] = 0
         for timeline in TestExpectations.TIMELINES.values():
             self.tests_by_timeline[timeline] = expectations.get_tests_with_timeline(timeline)
         self.slow_tests = set()
         self.interrupted = False
 
     def add(self, test_result, expected, test_is_slow):
-        self.total_tests_by_expectation[test_result.type] += 1
         self.tests_by_expectation[test_result.type].add(test_result.test_name)
         self.results[test_result.test_name] = test_result
         if test_result.type != SKIP: