Changeset 76398 in webkit


Ignore:
Timestamp:
Jan 21, 2011 3:23:49 PM (13 years ago)
Author:
dpranke@chromium.org
Message:

2011-01-21 Dirk Pranke <dpranke@chromium.org>

Reviewed by Eric Seidel.

Suppress a few remaining integration tests so that none of the
layout_test unit tests ever read from the filesystem or launch
subprocesses that aren't part of the unit tests.

Also fix a minor bug in the printing unit tests that was
incorrectly relying on sys.argv.

https://bugs.webkit.org/show_bug.cgi?id=52863

  • Scripts/webkitpy/layout_tests/layout_package/printing_unittest.py:
  • Scripts/webkitpy/layout_tests/port/port_testcase.py:
  • Scripts/webkitpy/layout_tests/run_webkit_tests_unittest.py:
Location:
trunk/Tools
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r76362 r76398  
     12011-01-21  Dirk Pranke  <dpranke@chromium.org>
     2
     3        Reviewed by Eric Seidel.
     4
     5        Suppress a few remaining integration tests so that none of the
     6        layout_test unit tests ever read from the filesystem or launch
     7        subprocesses that aren't part of the unit tests.
     8
     9        Also fix a minor bug in the printing unit tests that was
     10        incorrectly relying on sys.argv.
     11
     12        https://bugs.webkit.org/show_bug.cgi?id=52863
     13
     14        * Scripts/webkitpy/layout_tests/layout_package/printing_unittest.py:
     15        * Scripts/webkitpy/layout_tests/port/port_testcase.py:
     16        * Scripts/webkitpy/layout_tests/run_webkit_tests_unittest.py:
     17
    1182011-01-21  Darin Adler  <darin@apple.com>
    219
  • trunk/Tools/Scripts/webkitpy/layout_tests/layout_package/printing_unittest.py

    r76288 r76398  
    115115    def get_printer(self, args=None, single_threaded=False,
    116116                   is_fully_parallel=False):
     117        args = args or []
    117118        printing_options = printing.print_options()
    118119        option_parser = optparse.OptionParser(option_list=printing_options)
  • trunk/Tools/Scripts/webkitpy/layout_tests/port/port_testcase.py

    r76326 r76398  
    5858        port.stop_http_server()
    5959
    60     def test_image_diff(self):
     60    def disabled_test_image_diff(self):
    6161        port = self.make_port()
    6262        if not port:
  • trunk/Tools/Scripts/webkitpy/layout_tests/run_webkit_tests_unittest.py

    r76321 r76398  
    9999
    100100
    101 def logging_run(extra_args=None, port_obj=None, tests_included=False, filesystem=None):
     101def logging_run(extra_args=None, port_obj=None, record_results=False, tests_included=False, filesystem=None):
    102102    options, parsed_args = parse_args(extra_args=extra_args,
    103                                       record_results=False,
     103                                      record_results=record_results,
    104104                                      tests_included=tests_included,
    105105                                      print_nothing=False)
     
    241241    def test_last_results(self):
    242242        fs = port.unit_test_filesystem()
    243         passing_run(['--clobber-old-results'], record_results=True, filesystem=fs)
     243        # We do a logging run here instead of a passing run in order to
     244        # suppress the output from the json generator.
     245        (res, buildbot_output, regular_output, user) = logging_run(['--clobber-old-results'], record_results=True, filesystem=fs)
    244246        (res, buildbot_output, regular_output, user) = logging_run(
    245247            ['--print-last-failures'], filesystem=fs)
     
    520522    # requires fcntl, so it can't be tested on win32, etc. There is
    521523    # probably a better way of handling this.
    522     def test_darwin(self):
     524    def disabled_test_darwin(self):
    523525        if sys.platform != "darwin":
    524526            return
    525527
    526         self.assertTrue(passing_run(['--platform', 'test']))
    527         self.assertTrue(passing_run(['--platform', 'dryrun',
    528                                      'fast/html']))
    529         self.assertTrue(passing_run(['--platform', 'dryrun-mac',
    530                                      'fast/html']))
     528        self.assertTrue(passing_run(['--platform', 'dryrun', 'fast/html'],
     529                        tests_included=True))
     530        self.assertTrue(passing_run(['--platform', 'dryrun-mac', 'fast/html'],
     531                        tests_included=True))
    531532
    532533    def test_test(self):
Note: See TracChangeset for help on using the changeset viewer.