Bug 34817 - run-chromium-webkit-tests --platform=mac-leopard crashes when using a custom build directory
Summary: run-chromium-webkit-tests --platform=mac-leopard crashes when using a custom ...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Other OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-10 16:52 PST by Eric Seidel (no email)
Modified: 2010-02-10 17:24 PST (History)
5 users (show)

See Also:


Attachments
Patch (8.53 KB, patch)
2010-02-10 16:55 PST, Eric Seidel (no email)
levin: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Seidel (no email) 2010-02-10 16:52:42 PST
run-chromium-webkit-tests --platform=mac-leopard crashes when using a custom build directory
Comment 1 Eric Seidel (no email) 2010-02-10 16:55:34 PST
Created attachment 48530 [details]
Patch
Comment 2 Eric Seidel (no email) 2010-02-10 17:03:09 PST
This patch at least makes it so that more people can run "run-chromium-webkit-tests --platform=mac-leopard" and have things work.  We're still a ways away from rcwt doing everything rwt does.
Comment 3 Dirk Pranke 2010-02-10 17:10:29 PST
Comment on attachment 48530 [details]
Patch

> diff --git a/WebKitTools/Scripts/webkitpy/layout_tests/port/mac.py b/WebKitTools/Scripts/webkitpy/layout_tests/port/mac.py
> index 5a770ef..c09ec37 100644
> --- a/WebKitTools/Scripts/webkitpy/layout_tests/port/mac.py
> +++ b/WebKitTools/Scripts/webkitpy/layout_tests/port/mac.py
  
> @@ -265,6 +270,7 @@ class MacDriver(base.Driver):
>              # practice it shouldn't come up and the --help output warns
>              # about it anyway.
>              cmd += self._options.wrapper.split()
> +        # FIXME: Using arch here masks any possible file-not-found errors from a non-existant driver executable.
>          cmd += ['arch', '-i386', port._path_to_driver(), '-']

What you say is true, but you should still probably be calling arch -i386 $* (unless you want to dump the fat binary logic that currently is in run-webkit-tests

> diff --git a/WebKitTools/Scripts/webkitpy/layout_tests/rebaseline_chromium_webkit_tests.py b/WebKitTools/Scripts/webkitpy/layout_tests/rebaseline_chromium_webkit_tests.py
> index 4da32ad..83cf99d 100644
> --- a/WebKitTools/Scripts/webkitpy/layout_tests/rebaseline_chromium_webkit_tests.py
> +++ b/WebKitTools/Scripts/webkitpy/layout_tests/rebaseline_chromium_webkit_tests.py

did you mean to include this file?

-- dirk
Comment 4 Eric Seidel (no email) 2010-02-10 17:12:15 PST
Oh yeah, I'm not saying that "arch" is incorrect.  Just identifying that it is masking the missing file in case someone else runs into a similar error.
Comment 5 Dirk Pranke 2010-02-10 17:14:24 PST
patch LGTM otherwise.
Comment 6 Eric Seidel (no email) 2010-02-10 17:24:11 PST
Committed r54634: <http://trac.webkit.org/changeset/54634>