Title: [90479] trunk/Tools
Revision
90479
Author
[email protected]
Date
2011-07-06 12:07:39 -0700 (Wed, 06 Jul 2011)

Log Message

2011-07-06  Adam Barth  <[email protected]>

        Remove unused parameter from _add_test in test_expectations.py
        https://bugs.webkit.org/show_bug.cgi?id=64008

        Reviewed by Eric Seidel.

        * Scripts/webkitpy/layout_tests/layout_package/test_expectations.py:

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (90478 => 90479)


--- trunk/Tools/ChangeLog	2011-07-06 19:04:47 UTC (rev 90478)
+++ trunk/Tools/ChangeLog	2011-07-06 19:07:39 UTC (rev 90479)
@@ -1,5 +1,14 @@
 2011-07-06  Adam Barth  <[email protected]>
 
+        Remove unused parameter from _add_test in test_expectations.py
+        https://bugs.webkit.org/show_bug.cgi?id=64008
+
+        Reviewed by Eric Seidel.
+
+        * Scripts/webkitpy/layout_tests/layout_package/test_expectations.py:
+
+2011-07-06  Adam Barth  <[email protected]>
+
         Use old-run-webkit-tests when --leaks is present
         https://bugs.webkit.org/show_bug.cgi?id=64012
 

Modified: trunk/Tools/Scripts/webkitpy/layout_tests/layout_package/test_expectations.py (90478 => 90479)


--- trunk/Tools/Scripts/webkitpy/layout_tests/layout_package/test_expectations.py	2011-07-06 19:04:47 UTC (rev 90478)
+++ trunk/Tools/Scripts/webkitpy/layout_tests/layout_package/test_expectations.py	2011-07-06 19:07:39 UTC (rev 90479)
@@ -328,7 +328,6 @@
     def is_rebaselining(self, test):
         return self.has_modifier(test, REBASELINE)
 
-
     def _handle_any_read_errors(self):
         if len(self._errors) or len(self._non_fatal_errors):
             _log.error("FAILURES FOR %s" % str(self._test_config))
@@ -347,12 +346,10 @@
         expectations = set([PASS])
         options = []
         modifiers = []
-        num_matches = 0
         if self._full_test_list:
             for test in self._full_test_list:
                 if not test in self._test_list_paths:
-                    self._add_test(test, modifiers, num_matches, expectations,
-                                   options, overrides_allowed=False)
+                    self._add_test(test, modifiers, expectations, options, overrides_allowed=False)
 
     def _dict_of_sets(self, strings_to_constants):
         """Takes a dict of strings->constants and returns a dict mapping
@@ -495,8 +492,7 @@
             tests = self._expand_tests(test_list_path)
 
         modifiers = [o for o in options if o in self.MODIFIERS]
-        self._add_tests(tests, expectations, test_list_path, lineno,
-                        modifiers, num_matches, options, overrides_allowed)
+        self._add_tests(tests, expectations, test_list_path, lineno, modifiers, num_matches, options, overrides_allowed)
 
     def _get_options_list(self, listString):
         return [part.strip().lower() for part in listString.strip().split(' ')]
@@ -597,18 +593,14 @@
     def _add_tests(self, tests, expectations, test_list_path, lineno,
                    modifiers, num_matches, options, overrides_allowed):
         for test in tests:
-            if self._already_seen_better_match(test, test_list_path,
-                num_matches, lineno, overrides_allowed):
+            if self._already_seen_better_match(test, test_list_path, num_matches, lineno, overrides_allowed):
                 continue
 
             self._clear_expectations_for_test(test, test_list_path)
-            self._test_list_paths[test] = (self._fs.normpath(test_list_path),
-                num_matches, lineno)
-            self._add_test(test, modifiers, num_matches, expectations, options,
-                           overrides_allowed)
+            self._test_list_paths[test] = (self._fs.normpath(test_list_path), num_matches, lineno)
+            self._add_test(test, modifiers, expectations, options, overrides_allowed)
 
-    def _add_test(self, test, modifiers, num_matches, expectations, options,
-                  overrides_allowed):
+    def _add_test(self, test, modifiers, expectations, options, overrides_allowed):
         """Sets the expected state for a given test.
 
         This routine assumes the test has not been added before. If it has,
@@ -618,7 +610,6 @@
         Args:
           test: test to add
           modifiers: sequence of modifier keywords ('wontfix', 'slow', etc.)
-          num_matches: number of modifiers that matched the configuration
           expectations: sequence of expectations (PASS, IMAGE, etc.)
           options: sequence of keywords and bug identifiers.
           overrides_allowed: whether we're parsing the regular expectations
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to