Changeset 139084 in webkit


Ignore:
Timestamp:
Jan 8, 2013 11:19:37 AM (11 years ago)
Author:
zandobersek@gmail.com
Message:

test-webkitpy shows failure output on my linux box
https://bugs.webkit.org/show_bug.cgi?id=101261

Reviewed by Eric Seidel.

Mock out the PulseAudioSanitizer methods when creating testing instances
of EflPort and GtkPort interfaces in unit tests. This stops throwing up
PulseAudio output when the sanitizer was trying to unload modules which
were already unloaded by another unit test that was being run in parallel.

  • Scripts/webkitpy/layout_tests/port/efl_unittest.py:

(EflPortTest):
(EflPortTest.make_port):

  • Scripts/webkitpy/layout_tests/port/gtk_unittest.py:

(GtkPortTest):
(GtkPortTest.make_port):

Location:
trunk/Tools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r139082 r139084  
     12013-01-08  Zan Dobersek  <zandobersek@gmail.com>
     2
     3        test-webkitpy shows failure output on my linux box
     4        https://bugs.webkit.org/show_bug.cgi?id=101261
     5
     6        Reviewed by Eric Seidel.
     7
     8        Mock out the PulseAudioSanitizer methods when creating testing instances
     9        of EflPort and GtkPort interfaces in unit tests. This stops throwing up
     10        PulseAudio output when the sanitizer was trying to unload modules which
     11        were already unloaded by another unit test that was being run in parallel.
     12
     13        * Scripts/webkitpy/layout_tests/port/efl_unittest.py:
     14        (EflPortTest):
     15        (EflPortTest.make_port):
     16        * Scripts/webkitpy/layout_tests/port/gtk_unittest.py:
     17        (GtkPortTest):
     18        (GtkPortTest.make_port):
     19
    1202013-01-08  Julie Parent  <jparent@chromium.org>
    221
  • trunk/Tools/Scripts/webkitpy/layout_tests/port/efl_unittest.py

    r135912 r139084  
    3737    port_maker = EflPort
    3838
     39    # Additionally mocks out the PulseAudioSanitizer methods.
     40    def make_port(self, host=None, port_name=None, options=None, os_name=None, os_version=None, **kwargs):
     41        port = super(EflPortTest, self).make_port(host, port_name, options, os_name, os_version, **kwargs)
     42        port._unload_pulseaudio_module = lambda: None
     43        port._restore_pulseaudio_module = lambda: None
     44        return port
     45
    3946    def test_show_results_html_file(self):
    4047        port = self.make_port()
  • trunk/Tools/Scripts/webkitpy/layout_tests/port/gtk_unittest.py

    r138382 r139084  
    4343    port_name = 'gtk'
    4444    port_maker = GtkPort
     45
     46    # Additionally mocks out the PulseAudioSanitizer methods.
     47    def make_port(self, host=None, port_name=None, options=None, os_name=None, os_version=None, **kwargs):
     48        port = super(GtkPortTest, self).make_port(host, port_name, options, os_name, os_version, **kwargs)
     49        port._unload_pulseaudio_module = lambda: None
     50        port._restore_pulseaudio_module = lambda: None
     51        return port
    4552
    4653    def test_expectations_files(self):
Note: See TracChangeset for help on using the changeset viewer.