WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
142219
[buildbot] mastercfg_unittest.py should be runnable easily
https://bugs.webkit.org/show_bug.cgi?id=142219
Summary
[buildbot] mastercfg_unittest.py should be runnable easily
Csaba Osztrogonác
Reported
2015-03-03 09:30:36 PST
Now mastercfg_unittest.py isn't runnable out-of-the-box, because newer twisted moved NoResource from twisted.web.error to twisted.web.resource . The short term fix is to autoinstall the twisted version used by build.webkit.org buildmaster - Twisted 12.1.0 . I'm on it, patch is coming soon.
Attachments
Patch
(7.03 KB, patch)
2015-03-04 23:54 PST
,
Csaba Osztrogonác
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Csaba Osztrogonác
Comment 1
2015-03-04 23:54:17 PST
Created
attachment 247935
[details]
Patch With this fix mastercfg_unittest.py works out-of-the-box on Linux and Mac too. The next step will be to run it automatically on the bots.
Alexey Proskuryakov
Comment 2
2015-03-05 00:32:09 PST
For the ignorant among us, how does one run a python unit test "out of the box"? Is there a specific command? The only thing I know how to use is test-webkitpy, and then (barely) buildbot's checkconfig.
Csaba Osztrogonác
Comment 3
2015-03-05 00:37:08 PST
(In reply to
comment #2
)
> For the ignorant among us, how does one run a python unit test "out of the > box"? Is there a specific command? > > The only thing I know how to use is test-webkitpy, and then (barely) > buildbot's checkconfig.
cd Tools/BuildSlaveSupport/build.webkit.org-config ./mastercfg_unittest.py Unfortunately test-webkitpy can't run unit tests in build.webkit.org-config for some reason, for example "." and "-" characters in the directory name. I tried to rename the directory and add it to test-webkitpy, but it isn't enough, there are more issues should be fixed.
Csaba Osztrogonác
Comment 4
2015-03-05 00:41:11 PST
One more thing: You can't run each unittest in webkitpy by hand, because they don't have this code at the end and don't have execute bit: if __name__ == '__main__': unittest.main() test-webkitpy collects/executes unit tests parallel in a different way.
Chris Dumez
Comment 5
2015-03-05 10:39:05 PST
I tested this patch and was able to run mastercfg_unittest.py on Mac.
Chris Dumez
Comment 6
2015-03-05 10:46:46 PST
Comment on
attachment 247935
[details]
Patch r=me.
WebKit Commit Bot
Comment 7
2015-03-05 11:33:30 PST
Comment on
attachment 247935
[details]
Patch Clearing flags on attachment: 247935 Committed
r181088
: <
http://trac.webkit.org/changeset/181088
>
WebKit Commit Bot
Comment 8
2015-03-05 11:33:35 PST
All reviewed patches have been landed. Closing bug.
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