[Webkit-unassigned] [Bug 134070] [GTK] Load the llvmpipe (Mesa) libraries when running the tests with Xvfb

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jun 19 13:32:02 PDT 2014


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





--- Comment #2 from Martin Robinson <mrobinson at webkit.org>  2014-06-19 13:32:19 PST ---
(From update of attachment 233376)
View in context: https://bugs.webkit.org/attachment.cgi?id=233376&action=review

> Tools/Scripts/webkitpy/port/xvfbdriver.py:48
> +        if os.path.exists(port.path_from_webkit_base('WebKitBuild', 'Dependencies')):
> +                xvfb_found = port.host.executive.run_command(port._jhbuild_wrapper + ['which', 'Xvfb'], return_exit_code=True) is 0
> +        else:
> +                xvfb_found = port.host.executive.run_command(['which', 'Xvfb'], return_exit_code=True) is 0

Wouldn't it be easier to simply run Xvfb with the JHBuild wrapper? Doesn't the PATH take care of choosing the correct Xvfb?

> Tools/Scripts/webkitpy/port/xvfbdriver.py:58
> +        if self._port.name().startswith("gtk") and os.path.exists(self._port.path_from_webkit_base('WebKitBuild', 'Dependencies')):

I'd really like to see this move to the port specific file somehow.

> Tools/Scripts/webkitpy/port/xvfbdriver.py:61
> +                        error_handler=self._port.host.executive.ignore_error).strip()

Nit: Missing some spaces around the = sign.

> Tools/Scripts/webkitpy/port/xvfbdriver.py:99
> +        if os.path.exists(self._port.path_from_webkit_base('WebKitBuild', 'Dependencies')):
> +                # Run the Xvfb from the jhbuild
> +                run_xvfb = self._port._jhbuild_wrapper + run_xvfb

We don't have any helpers for this?

> Tools/Scripts/webkitpy/port/xvfbdriver.py:107
> +        if self._llvmpipe_libgl_path:
> +                # Force the Gallium llvmpipe software rasterizer
> +                environment['LD_LIBRARY_PATH'] = self._llvmpipe_libgl_path
> +                # If there were another paths on LD_LIBRARY_PATH append them after llvmpipe_libgl_path
> +                if os.environ.get('LD_LIBRARY_PATH'):
> +                        environment['LD_LIBRARY_PATH'] += ':%s' % os.environ.get('LD_LIBRARY_PATH')
> +

Can't we set this up in gtk.py? Your indentation is also a bit funky.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list