Changeset 90479 in webkit


Ignore:
Timestamp:
Jul 6, 2011 12:07:39 PM (13 years ago)
Author:
abarth@webkit.org
Message:

2011-07-06 Adam Barth <abarth@webkit.org>

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:
Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r90476 r90479  
     12011-07-06  Adam Barth  <abarth@webkit.org>
     2
     3        Remove unused parameter from _add_test in test_expectations.py
     4        https://bugs.webkit.org/show_bug.cgi?id=64008
     5
     6        Reviewed by Eric Seidel.
     7
     8        * Scripts/webkitpy/layout_tests/layout_package/test_expectations.py:
     9
    1102011-07-06  Adam Barth  <abarth@webkit.org>
    211
  • trunk/Tools/Scripts/webkitpy/layout_tests/layout_package/test_expectations.py

    r86696 r90479  
    329329        return self.has_modifier(test, REBASELINE)
    330330
    331 
    332331    def _handle_any_read_errors(self):
    333332        if len(self._errors) or len(self._non_fatal_errors):
     
    348347        options = []
    349348        modifiers = []
    350         num_matches = 0
    351349        if self._full_test_list:
    352350            for test in self._full_test_list:
    353351                if not test in self._test_list_paths:
    354                     self._add_test(test, modifiers, num_matches, expectations,
    355                                    options, overrides_allowed=False)
     352                    self._add_test(test, modifiers, expectations, options, overrides_allowed=False)
    356353
    357354    def _dict_of_sets(self, strings_to_constants):
     
    496493
    497494        modifiers = [o for o in options if o in self.MODIFIERS]
    498         self._add_tests(tests, expectations, test_list_path, lineno,
    499                         modifiers, num_matches, options, overrides_allowed)
     495        self._add_tests(tests, expectations, test_list_path, lineno, modifiers, num_matches, options, overrides_allowed)
    500496
    501497    def _get_options_list(self, listString):
     
    598594                   modifiers, num_matches, options, overrides_allowed):
    599595        for test in tests:
    600             if self._already_seen_better_match(test, test_list_path,
    601                 num_matches, lineno, overrides_allowed):
     596            if self._already_seen_better_match(test, test_list_path, num_matches, lineno, overrides_allowed):
    602597                continue
    603598
    604599            self._clear_expectations_for_test(test, test_list_path)
    605             self._test_list_paths[test] = (self._fs.normpath(test_list_path),
    606                 num_matches, lineno)
    607             self._add_test(test, modifiers, num_matches, expectations, options,
    608                            overrides_allowed)
    609 
    610     def _add_test(self, test, modifiers, num_matches, expectations, options,
    611                   overrides_allowed):
     600            self._test_list_paths[test] = (self._fs.normpath(test_list_path), num_matches, lineno)
     601            self._add_test(test, modifiers, expectations, options, overrides_allowed)
     602
     603    def _add_test(self, test, modifiers, expectations, options, overrides_allowed):
    612604        """Sets the expected state for a given test.
    613605
     
    619611          test: test to add
    620612          modifiers: sequence of modifier keywords ('wontfix', 'slow', etc.)
    621           num_matches: number of modifiers that matched the configuration
    622613          expectations: sequence of expectations (PASS, IMAGE, etc.)
    623614          options: sequence of keywords and bug identifiers.
Note: See TracChangeset for help on using the changeset viewer.