WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
89108
[Qt][NRWT] Enable cascaded TestExpectations
https://bugs.webkit.org/show_bug.cgi?id=89108
Summary
[Qt][NRWT] Enable cascaded TestExpectations
Csaba Osztrogonác
Reported
2012-06-14 09:37:42 PDT
SSIA
Attachments
Patch
(11.69 KB, patch)
2012-06-14 09:41 PDT
,
Csaba Osztrogonác
no flags
Details
Formatted Diff
Diff
proposed patch
(4.01 KB, patch)
2012-07-04 08:22 PDT
,
János Badics
no flags
Details
Formatted Diff
Diff
proposed patch
(3.91 KB, patch)
2012-07-05 02:04 PDT
,
János Badics
dpranke
: review+
Details
Formatted Diff
Diff
proposed patch
(3.86 KB, patch)
2012-07-09 01:42 PDT
,
János Badics
no flags
Details
Formatted Diff
Diff
proposed patch
(5.08 KB, patch)
2012-07-10 05:25 PDT
,
János Badics
ossy
: commit-queue-
Details
Formatted Diff
Diff
proposed patch
(5.76 KB, patch)
2012-07-10 05:36 PDT
,
János Badics
no flags
Details
Formatted Diff
Diff
Show Obsolete
(5)
View All
Add attachment
proposed patch, testcase, etc.
Csaba Osztrogonác
Comment 1
2012-06-14 09:41:01 PDT
Created
attachment 147605
[details]
Patch WIP patch
Peter Gal
Comment 2
2012-06-14 10:03:27 PDT
View in context:
https://bugs.webkit.org/attachment.cgi?id=147605&action=review
> Tools/Scripts/webkitpy/layout_tests/port/qt.py:153 > + x.append(self._filesystem.join(self._webkit_baseline_path('qt'), 'TestExpectations')) > + x.append(self._filesystem.join(self._webkit_baseline_path(self.name()), 'TestExpectations')) > + version = self.qt_version() > + if '4.8' in version: > + x.append(self._filesystem.join(self._webkit_baseline_path('qt-4.8'), 'TestExpectations')) > + elif version: > + x.append(self._filesystem.join(self._webkit_baseline_path('qt-5.0'), 'TestExpectations')) > + if self.get_option('webkit_test_runner'): > + x.append(self._filesystem.join(self._webkit_baseline_path('qt-5.0-wk2'), 'TestExpectations')) > + else: > + x.append(self._filesystem.join(self._webkit_baseline_path('qt-5.0-wk1'), 'TestExpectations'))
Just a tipp: we should first collect out the names of the platforms and after that build up the paths. That way there will be less path joins written down and the code should be more readable.
> Tools/Scripts/webkitpy/layout_tests/port/qt_unittest.py:56 > + def _assert_expectations_files(self, expectations_paths, os_name=None, use_webkit2=False, qt_version='4.8'):
We should require the os_name, no need for default arument.
> Tools/Scripts/webkitpy/layout_tests/port/qt_unittest.py:62 > + port_name = 'qt-' + os_name
If os_name is not specified, then with the default None this'll raise an exception.
Csaba Osztrogonác
Comment 3
2012-06-25 08:45:19 PDT
we should fix the baseline search path in another bug:
https://bugs.webkit.org/show_bug.cgi?id=89882
(before this patch)
János Badics
Comment 4
2012-07-04 08:22:08 PDT
Created
attachment 150802
[details]
proposed patch Unified assert paths in one variable and refactored expectations_files() a bit.
János Badics
Comment 5
2012-07-05 02:04:54 PDT
Created
attachment 150897
[details]
proposed patch Corrected two minor mistakes in the previous patch
Dirk Pranke
Comment 6
2012-07-08 11:47:20 PDT
Comment on
attachment 150897
[details]
proposed patch View in context:
https://bugs.webkit.org/attachment.cgi?id=150897&action=review
> Tools/Scripts/webkitpy/layout_tests/port/qt.py:149 > + return paths
Nit: I'd probably write this in one line using a list comprehension: return reversed(self._filesystem.join(self._webkit_baseline_path(p), 'TestExpectations') for p in self._search_paths())
János Badics
Comment 7
2012-07-09 01:42:25 PDT
Created
attachment 151215
[details]
proposed patch Corrected previous patch according to the recommendation of Dirk Pranke.
Dirk Pranke
Comment 8
2012-07-09 10:37:24 PDT
Comment on
attachment 151215
[details]
proposed patch View in context:
https://bugs.webkit.org/attachment.cgi?id=151215&action=review
> Tools/Scripts/webkitpy/layout_tests/port/qt.py:146 > + return list(reversed([self._filesystem.join(self._webkit_baseline_path(p), 'TestExpectations') for p in self._search_paths()]))
Minor nits ... you don't need either the list() or the nested [ ] around the list comprehensions, but we can remove those in a subsequent cleanup.
WebKit Review Bot
Comment 9
2012-07-09 11:56:12 PDT
Comment on
attachment 151215
[details]
proposed patch Clearing flags on attachment: 151215 Committed
r122124
: <
http://trac.webkit.org/changeset/122124
>
WebKit Review Bot
Comment 10
2012-07-09 11:56:17 PDT
All reviewed patches have been landed. Closing bug.
WebKit Review Bot
Comment 11
2012-07-09 13:03:49 PDT
Re-opened since this is blocked by 90815
Csaba Osztrogonác
Comment 12
2012-07-09 13:04:42 PDT
(In reply to
comment #11
)
> Re-opened since this is blocked by 90815
It broke the NRWT: 11:56:31.757 24122 Parsing expectations ... 11:56:31.771 24122 File "/ramdisk/qt-linux-64-release-quicktest/build/Tools/Scripts/webkitpy/layout_tests/run_webkit_tests.py", line 127, in run 11:56:31.772 24122 manager.parse_expectations() 11:56:31.772 24122 File "/ramdisk/qt-linux-64-release-quicktest/build/Tools/Scripts/webkitpy/layout_tests/controllers/manager.py", line 374, in parse_expectations 11:56:31.772 24122 self._expectations = test_expectations.TestExpectations(self._port, self._test_files) 11:56:31.772 24122 File "/ramdisk/qt-linux-64-release-quicktest/build/Tools/Scripts/webkitpy/layout_tests/models/test_expectations.py", line 732, in __init__ 11:56:31.772 24122 expectations_dict = port.expectations_dict() 11:56:31.772 24122 File "/ramdisk/qt-linux-64-release-quicktest/build/Tools/Scripts/webkitpy/layout_tests/port/base.py", line 911, in expectations_dict 11:56:31.772 24122 expectations[path] = self._filesystem.read_text_file(path) 11:56:31.772 24122 File "/ramdisk/qt-linux-64-release-quicktest/build/Tools/Scripts/webkitpy/common/system/filesystem.py", line 218, in read_text_file 11:56:31.772 24122 with codecs.open(path, 'r', 'utf8') as f: 11:56:31.772 24122 File "/usr/lib/python2.6/codecs.py", line 881, in open 11:56:31.772 24122 file = __builtin__.open(filename, mode, buffering)
Csaba Osztrogonác
Comment 13
2012-07-09 13:06:16 PDT
Let's check what happened tomorrow. And please _run_ layout tests before uploading an NRWT patch next time, not only unittests ...
János Badics
Comment 14
2012-07-10 05:25:40 PDT
Created
attachment 151443
[details]
proposed patch Sorry, I forgot to include TestExpectations file. That's why my previous patch caused problems in the layout tests. This patch includes the additional (and empty) expectations files in the qt-5.0-wk1, qt-5.0-wk2, qt-5.0, qt-4.8 and qt-linux directories.
Csaba Osztrogonác
Comment 15
2012-07-10 05:27:51 PDT
Comment on
attachment 151443
[details]
proposed patch qt-win and qt-mac is still missing ...
János Badics
Comment 16
2012-07-10 05:36:44 PDT
Created
attachment 151444
[details]
proposed patch Added Expectations files to qt-arm, qt-mac and qt-win as well.
Csaba Osztrogonác
Comment 17
2012-07-10 06:05:46 PDT
Comment on
attachment 151444
[details]
proposed patch Landed in
r122217
.
Csaba Osztrogonác
Comment 18
2012-07-11 01:38:58 PDT
Comment on
attachment 151444
[details]
proposed patch It was landed ... why did you set cq? again?
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