Bug 97380 - nrwt: don't require additional-platform-directory to be an abspath or live under LayoutTests
Summary: nrwt: don't require additional-platform-directory to be an abspath or live un...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Dirk Pranke
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-21 17:05 PDT by Dirk Pranke
Modified: 2012-12-18 11:22 PST (History)
4 users (show)

See Also:


Attachments
Patch (6.53 KB, patch)
2012-09-21 17:07 PDT, Dirk Pranke
ojan: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Pranke 2012-09-21 17:05:52 PDT
nrwt: don't require additional-platform-directory to be an abspath or live under LayoutTests
Comment 1 Dirk Pranke 2012-09-21 17:07:15 PDT
Created attachment 165231 [details]
Patch
Comment 2 Dirk Pranke 2012-09-21 18:00:06 PDT
Committed r129285: <http://trac.webkit.org/changeset/129285>
Comment 3 Ryosuke Niwa 2012-12-17 23:36:07 PST
Comment on attachment 165231 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=165231&action=review

> Tools/Scripts/webkitpy/layout_tests/port/base.py:802
> +        if filename.startswith(self.perf_tests_dir()):
> +            return self.host.filesystem.relpath(filename, self.perf_tests_dir())
> +        else:
> +            return self.filesystem.abspath(filename)

This doesn't work for performance tests because this relative path is used elsewhere as the test name after split by /.
Comment 4 Dirk Pranke 2012-12-18 11:19:58 PST
(In reply to comment #3)
> (From update of attachment 165231 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=165231&action=review
> 
> > Tools/Scripts/webkitpy/layout_tests/port/base.py:802
> > +        if filename.startswith(self.perf_tests_dir()):
> > +            return self.host.filesystem.relpath(filename, self.perf_tests_dir())
> > +        else:
> > +            return self.filesystem.abspath(filename)
> 
> This doesn't work for performance tests because this relative path is used elsewhere as the test name after split by /.

I don't follow you ... can you explain further?
Comment 5 Ryosuke Niwa 2012-12-18 11:22:44 PST
(In reply to comment #4)
> (In reply to comment #3)
> >
> > This doesn't work for performance tests because this relative path is used elsewhere as the test name after split by /.
> 
> I don't follow you ... can you explain further?

All test names (this is human-readable name re-formatted by the script), etc... are computed from this relative test name so the rest of run-perf-tests will just blow up if you use an absolute path.

I got rid of this function in https://bugs.webkit.org/show_bug.cgi?id=105219.