Changeset 91374 in webkit


Ignore:
Timestamp:
Jul 20, 2011 9:33:27 AM (13 years ago)
Author:
commit-queue@webkit.org
Message:

[Gtk] [NRWT] Xvfb produces a lot of stderr output
https://bugs.webkit.org/show_bug.cgi?id=64669

Patch by Zan Dobersek <zandobersek@gmail.com> on 2011-07-20
Reviewed by Philippe Normand.

Redirect the stderr output of the driver's Xvfb process
to /dev/null to suppress unneeded output.

  • Scripts/webkitpy/layout_tests/port/gtk.py:
Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r91323 r91374  
     12011-07-20  Zan Dobersek  <zandobersek@gmail.com>
     2
     3        [Gtk] [NRWT] Xvfb produces a lot of stderr output
     4        https://bugs.webkit.org/show_bug.cgi?id=64669
     5
     6        Reviewed by Philippe Normand.
     7
     8        Redirect the stderr output of the driver's Xvfb process
     9        to /dev/null to suppress unneeded output.
     10
     11        * Scripts/webkitpy/layout_tests/port/gtk.py:
     12
    1132011-07-19  Eric Seidel  <eric@webkit.org>
    214
  • trunk/Tools/Scripts/webkitpy/layout_tests/port/gtk.py

    r91315 r91374  
    4444        display_id = self._worker_number + 1
    4545        run_xvfb = ["Xvfb", ":%d" % (display_id), "-screen",  "0", "800x600x24", "-nolisten", "tcp"]
    46         self._xvfb_process = subprocess.Popen(run_xvfb)
     46        devnull = open(os.devnull, 'w')
     47        self._xvfb_process = subprocess.Popen(run_xvfb, stderr=devnull)
     48        devnull.close()
    4749        server_name = self._port.driver_name()
    4850        environment = self._port.setup_environ_for_server(server_name)
Note: See TracChangeset for help on using the changeset viewer.