WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
64499
new-run-webkit-tests: print baseline search path as part of config output
https://bugs.webkit.org/show_bug.cgi?id=64499
Summary
new-run-webkit-tests: print baseline search path as part of config output
Dirk Pranke
Reported
2011-07-13 19:13:57 PDT
new-run-webkit-tests: print baseline search path as part of config output
Attachments
Patch
(3.03 KB, patch)
2011-07-13 19:15 PDT
,
Dirk Pranke
eric
: review+
dpranke
: commit-queue-
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Dirk Pranke
Comment 1
2011-07-13 19:15:21 PDT
Created
attachment 100756
[details]
Patch
Eric Seidel (no email)
Comment 2
2011-07-13 19:21:20 PDT
Comment on
attachment 100756
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=100756&action=review
I would have just printed it one-per line. Some of these might get very long. But it's definitely better than what we have.
> Tools/Scripts/webkitpy/layout_tests/controllers/manager.py:1103 > + fallback_path = [x.split(self._port.filesystem.sep)[-1] for x in self._port.baseline_search_path()]
Why not use filesystem.split? I would probably have written this map(lambda path: self._port.filesystem.split(path)[-1], self._port.baseline_search_path())
Dirk Pranke
Comment 3
2011-07-13 19:27:58 PDT
(In reply to
comment #2
)
> (From update of
attachment 100756
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=100756&action=review
> > I would have just printed it one-per line. Some of these might get very long. But it's definitely better than what we have. >
I intentionally didn't do this because one-per line is much more verbose and harder to read (IMO). The longest each component might get is something like 'chromium-gpu-mac-snowleopard', which prints: Baseline search path: chromium-gpu-mac -> chromium-gpu -> chromium-mac -> chromium -> mac-snowleopard -> mac -> generic which is still significantly shorter than, say, the command line for DRT from the same output: /Volumes/Src/src/dev2/src/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/mock_drt.pyc --platform chromium-gpu-mac-snowleopard --test-shell --pixel-tests=/Volumes/Src/src/dev2/src/webkit/Release/layout-test-results/png_result0.png --enable-accelerated-compositing --enable-accelerated-2d-canvas
> > Tools/Scripts/webkitpy/layout_tests/controllers/manager.py:1103 > > + fallback_path = [x.split(self._port.filesystem.sep)[-1] for x in self._port.baseline_search_path()] > > Why not use filesystem.split? I would probably have written this map(lambda path: self._port.filesystem.split(path)[-1], self._port.baseline_search_path())
Hm. I was thinking filesystem.split() would return the full dirname and an empty basename, but I guess in this case the full dirname is to .../LayoutTests/platform, and the basename is what you want. Will change.
Dirk Pranke
Comment 4
2011-07-13 19:30:29 PDT
Note that you can use this command to see the baseline search path of any port, even one for an operating system different than the one you are running on: % new-run-webkit-tests --platform XX --no-build --nocheck-sys-deps --print config -n
Eric Seidel (no email)
Comment 5
2011-07-13 19:30:58 PDT
Seems useful, thanks!
Dirk Pranke
Comment 6
2011-07-13 19:33:01 PDT
Committed
r90973
: <
http://trac.webkit.org/changeset/90973
>
Dirk Pranke
Comment 7
2011-07-13 19:35:52 PDT
sample output: $ new-run-webkit-tests --platform chromium-gpu-mac-leopard --no-build --nocheck-sys-deps --print config -n Using port 'chromium-gpu-mac-leopard' Test configuration: <leopard, x86, release, gpu> Placing test results in /Volumes/Src/src/master/src/webkit/Release/layout-test-results Baseline search path: chromium-gpu-mac -> chromium-gpu -> chromium-mac-leopard -> chromium-mac -> chromium -> mac-leopard -> mac-snowleopard -> mac -> generic Using Release build Pixel tests enabled Regular timeout: 6000, slow test timeout: 30000 Command line: /Volumes/Src/src/master/src/xcodebuild/Release/DumpRenderTree.app/Contents/MacOS/DumpRenderTree --test-shell --pixel-tests=/Volumes/Src/src/master/src/webkit/Release/layout-test-results/png_result0.png --enable-accelerated-compositing --enable-accelerated-2d-canvas Worker model: processes Running 1 DumpRenderTree over 1 shard $
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug