Bug 87376 - [Qt] NRWT and ORWT checks only for Skipped in platform/qt-5.0-wk1
Summary: [Qt] NRWT and ORWT checks only for Skipped in platform/qt-5.0-wk1
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Qt (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-24 05:17 PDT by János Badics
Modified: 2012-05-29 23:38 PDT (History)
6 users (show)

See Also:


Attachments
proposed patch (2.06 KB, patch)
2012-05-24 05:42 PDT, János Badics
no flags Details | Formatted Diff | Diff
proposed patch (3.14 KB, patch)
2012-05-24 06:58 PDT, János Badics
no flags Details | Formatted Diff | Diff
proposed patch (3.07 KB, patch)
2012-05-24 07:02 PDT, János Badics
ossy: review-
ossy: commit-queue-
Details | Formatted Diff | Diff
proposed patch (3.43 KB, patch)
2012-05-25 03:36 PDT, János Badics
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description János Badics 2012-05-24 05:17:34 PDT
Running NRWT or ORWT with --platform qt[+ suffixes] uses a set of baseline search paths for expectations where qt-5.0-wk1 is not included. When run with qt5.0, it should be included to handle qt-5.0 + WebKit1 specific expectations.
Comment 1 János Badics 2012-05-24 05:42:33 PDT
Created attachment 143798 [details]
proposed patch
Comment 2 Csaba Osztrogonác 2012-05-24 05:49:32 PDT
Comment on attachment 143798 [details]
proposed patch

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

Please add/check unit test for the NRWT change.

> Tools/ChangeLog:7
> +        Reviewed by Csaba Osztrogonác.

It isn't true now. :)

> Tools/Scripts/old-run-webkit-tests:2168
> +        if ($platform eq "qt-5.0-wk1" || $platform eq "qt-5.0" || ($platform eq "qt" && getQtVersion() eq "5.0")) {
> +            push @platforms, "qt-5.0-wk1";
> +        }
> +

It's strange for me a little bit ... I should check this part of the code.
Comment 3 János Badics 2012-05-24 06:58:25 PDT
Created attachment 143822 [details]
proposed patch

- Added unittest to the modifications of qt.py
- Made baseline path determining more simple on orwt
- Corrected changelog
Comment 4 János Badics 2012-05-24 07:02:52 PDT
Created attachment 143823 [details]
proposed patch

see above (the previous patch contained trailing whitespace)
Comment 5 Csaba Osztrogonác 2012-05-24 07:31:04 PDT
Comment on attachment 143823 [details]
proposed patch

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

Could you check if my suggestions are correct?

> Tools/Scripts/old-run-webkit-tests:2166
>          if ($platform eq "qt-5.0-wk2") {
>              push @platforms, $platform;
>          }
> +        elsif (getQtVersion() eq "5.0") {
> +            push @platforms, "qt-5.0-wk1"
> +        }

It isn't the best solution ... We don't want to use qt-5.0-wk1 Skipped list for Qt 4.8.

What do you think about this one?

if ($platform eq "qt-5.0-wk2" || getQtVersion() eq "5.0" && $useWebKitTestRunner) {
    push @platforms, "qt-5.0-wk2";
}
elsif ($platform eq "qt-5.0-wk1" || getQtVersion() eq "5.0" && !$useWebKitTestRunner) {
    push @platforms, "qt-5.0-wk1"
}

> Tools/Scripts/webkitpy/layout_tests/port/qt.py:118
>          if self.get_option('webkit_test_runner'):
>              search_paths.append(self._wk2_port_name())
> +        elif '5.0' in version:
> +            search_paths.append('qt-5.0-wk1')

It isn't so nice ...

What do you think about this one?

if '5.0' in version:
    if self.get_option('webkit_test_runner'):
        search_paths.append('qt-5.0-wk2')
    else:
        search_paths.append('qt-5.0-wk1')
Comment 6 János Badics 2012-05-25 03:36:21 PDT
Created attachment 144034 [details]
proposed patch

Modified previous patch based on suggestions of Csaba Osztrogonác.
Comment 7 Dirk Pranke 2012-05-25 11:57:51 PDT
Comment on attachment 144034 [details]
proposed patch

patch looks fine to me but one of the Qt folks might want to give the final approval.
Comment 8 Csaba Osztrogonác 2012-05-29 23:37:18 PDT
Comment on attachment 144034 [details]
proposed patch

r=me
Comment 9 Csaba Osztrogonác 2012-05-29 23:38:23 PDT
Landed in http://trac.webkit.org/changeset/118898