Changeset 127688 in webkit


Ignore:
Timestamp:
Sep 5, 2012 9:37:42 PM (12 years ago)
Author:
dpranke@chromium.org
Message:

NRWT lies about the number of tests that it's skipping when used with --repeat-each
https://bugs.webkit.org/show_bug.cgi?id=95789

Reviewed by Ojan Vafai.

Fix miscalculation in log message.

  • Scripts/webkitpy/layout_tests/views/printing.py:

(Printer.print_found):

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r127679 r127688  
     12012-09-05  Dirk Pranke  <dpranke@chromium.org>
     2
     3        NRWT lies about the number of tests that it's skipping when used with --repeat-each
     4        https://bugs.webkit.org/show_bug.cgi?id=95789
     5
     6        Reviewed by Ojan Vafai.
     7
     8        Fix miscalculation in log message.
     9
     10        * Scripts/webkitpy/layout_tests/views/printing.py:
     11        (Printer.print_found):
     12
    1132012-09-05  Kenichi Ishibashi  <bashi@chromium.org>
    214
  • trunk/Tools/Scripts/webkitpy/layout_tests/views/printing.py

    r127478 r127688  
    110110
    111111    def print_found(self, num_all_test_files, num_to_run, repeat_each, iterations):
    112         found_str = 'Found %s; running %d' % (grammar.pluralize('test', num_all_test_files), num_to_run)
     112        num_unique_tests = num_to_run / (repeat_each * iterations)
     113        found_str = 'Found %s; running %d' % (grammar.pluralize('test', num_all_test_files), num_unique_tests)
    113114        if repeat_each * iterations > 1:
    114115            found_str += ' (%d times each: --repeat-each=%d --iterations=%d)' % (repeat_each * iterations, repeat_each, iterations)
    115         found_str += ', skipping %d' % (num_all_test_files - num_to_run)
     116        found_str += ', skipping %d' % (num_all_test_files - num_unique_tests)
    116117        self._print_default(found_str + '.')
    117118
Note: See TracChangeset for help on using the changeset viewer.