On 09/27/2013 02:39 PM, Dylan Baker wrote:
> Since there is nothign special about __generate_lists anymore (it just

nothing

> does the same thing all the time), just fold it back into the
> constructor and save on having to call it.

A trivial amount of cost, so not worth it from an optimization point of
view.  But there's not really any harm in doing it either.

> Signed-off-by: Dylan Baker <[email protected]>
> ---
>  framework/summary.py | 26 ++++----------------------
>  1 file changed, 4 insertions(+), 22 deletions(-)
> 
> diff --git a/framework/summary.py b/framework/summary.py
> index 1a899e7..158e59b 100644
> --- a/framework/summary.py
> +++ b/framework/summary.py
> @@ -363,8 +363,8 @@ class Summary:
>  
>          self.status = {}
>          self.fractions = {}
> -        self.tests = {'all': set(), 'changes': set(), 'problems': set(), 
> 'skipped': set(),
> -                      'regressions': set(), 'fixes': set()}
> +        self.tests = {'all': set(), 'changes': set(), 'problems': set(),
> +                      'skipped': set(), 'regressions': set(), 'fixes': set()}
>  
>          for each in self.results:
>              # Build a dict of the status output of all of the tests, with the
> @@ -377,20 +377,8 @@ class Summary:
>              # Create a list with all the test names in it
>              self.tests['all'] = set(self.tests['all']) | set(each.tests)
>  
> -    def __generate_lists(self):
> -        """
> -        Private: Generate the lists of changes, problems, regressions, fixes,
> -        and skips
> -
> -        lists is a list contianing any of the following: changes, problems,
> -        skips, fixes (which will also generate regressions)
> -
> -        This method has different code paths to allow the exclusion of 
> certain
> -        lists being generated. This is both useful for speeding up HTML
> -        generation when a page isn't needed (regressions with only one test
> -        file is provided), and for JUnit and text which only need a limited
> -        subset of these lists
> -        """
> +        # Craete the lists of statuses like problems, regerssions, fixes,
> +        # changes and skips

Typos: Craete, regerssions

Otherwise,
Reviewed-by: Kenneth Graunke <[email protected]>
_______________________________________________
Piglit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/piglit

Reply via email to