Changeset 169558 in webkit


Ignore:
Timestamp:
Jun 2, 2014 11:51:26 PM (10 years ago)
Author:
commit-queue@webkit.org
Message:

Add a verbose flag to binding tests
https://bugs.webkit.org/show_bug.cgi?id=122303

Patch by Tibor Meszaros <tmeszaros.u-szeged@partner.samsung.com> on 2014-06-02
Reviewed by Csaba Osztrogonác.

This patch will:

  • Add a verbose keyword argument to the BindingsTests constructor,
  • Add --no-verbose option to the run-bindigs-test.

Verbose mode, which is on by default, prints positive results to stdout as before.
When the --no-verbose option added to run-bindings-tests, positive results are not printed at all.

Original patch from Matthew Hanson <matthew_hanson@apple.com>

  • Scripts/run-bindings-tests:

(main):

  • Scripts/webkitpy/bindings/main.py:

(BindingsTests.init):
(BindingsTests.detect_changes):

Location:
trunk/Tools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r169541 r169558  
     12014-06-02  Tibor Meszaros  <tmeszaros.u-szeged@partner.samsung.com>
     2
     3        Add a verbose flag to binding tests
     4        https://bugs.webkit.org/show_bug.cgi?id=122303
     5
     6        Reviewed by Csaba Osztrogonác.
     7
     8        This patch will:
     9        - Add a verbose keyword argument to the BindingsTests constructor,
     10        - Add --no-verbose option to the run-bindigs-test.
     11        Verbose mode, which is on by default, prints positive results to stdout as before.
     12        When the --no-verbose option added to run-bindings-tests, positive results are not printed at all.
     13
     14        Original patch from Matthew Hanson <matthew_hanson@apple.com>
     15
     16        * Scripts/run-bindings-tests:
     17        (main):
     18        * Scripts/webkitpy/bindings/main.py:
     19        (BindingsTests.__init__):
     20        (BindingsTests.detect_changes):
     21
    1222014-06-01  Ryosuke Niwa  <rniwa@webkit.org>
    223
  • trunk/Tools/Scripts/run-bindings-tests

    r165676 r169558  
    4141    """
    4242    reset_results = "--reset-results" in argv
     43    verbose = not "--no-verbose" in argv
    4344
    4445    generators = [
     
    5051    from webkitpy.bindings.main import BindingsTests
    5152
    52     return BindingsTests(reset_results, generators, executive.Executive()).main()
     53    return BindingsTests(reset_results, generators, executive.Executive(), verbose).main()
    5354
    5455
  • trunk/Tools/Scripts/webkitpy/bindings/main.py

    r165676 r169558  
    3535class BindingsTests:
    3636
    37     def __init__(self, reset_results, generators, executive):
     37    def __init__(self, reset_results, generators, executive, verbose):
    3838        self.reset_results = reset_results
    3939        self.generators = generators
    4040        self.executive = executive
     41        self.verbose = verbose
    4142
    4243    def generate_from_idl(self, generator, idl_file, output_directory, supplemental_dependency_file):
     
    113114                print output
    114115                changes_found = True
    115             else:
     116            elif self.verbose:
    116117                print 'PASS: (%s) %s' % (generator, output_file)
    117118        return changes_found
Note: See TracChangeset for help on using the changeset viewer.