WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
173772
[WPE] Add run-wpe-tests script to run WPE glib API tests
https://bugs.webkit.org/show_bug.cgi?id=173772
Summary
[WPE] Add run-wpe-tests script to run WPE glib API tests
Carlos Garcia Campos
Reported
2017-06-23 09:27:08 PDT
Refactoring the run-gtk-tests script to share the code as much as possible.
Attachments
Patch
(40.85 KB, patch)
2017-06-23 09:30 PDT
,
Carlos Garcia Campos
mcatanzaro
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Carlos Garcia Campos
Comment 1
2017-06-23 09:30:53 PDT
Created
attachment 313723
[details]
Patch
Michael Catanzaro
Comment 2
2017-07-02 09:21:16 PDT
Comment on
attachment 313723
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=313723&action=review
> Tools/ChangeLog:8 > + Move common code from run-gtk-tests to api_test_runner.py, to be shared by both run-gtk-tests and un-wpe-tests.
run-wpe-tests
Carlos Garcia Campos
Comment 3
2017-11-20 03:03:34 PST
Committed
r225047
: <
https://trac.webkit.org/changeset/225047
>
Michael Catanzaro
Comment 4
2017-11-20 15:39:19 PST
It broke run-gtk-tests: $ run-gtk-tests Traceback (most recent call last): File "/home/mcatanzaro/Projects/WebKit/Tools/Scripts/run-gtk-tests", line 159, in <module> if not jhbuildutils.enter_jhbuild_environment_if_available("gtk"): File "/home/mcatanzaro/Projects/WebKit/Tools/jhbuild/jhbuildutils.py", line 51, in enter_jhbuild_environment_if_available config = jhbuild.config.Config(get_config_file_for_platform(platform), []) File "/home/mcatanzaro/Projects/WebKit/WebKitBuild/DependenciesGTK/Source/jhbuild/jhbuild/config.py", line 167, in __init__ self.load(filename) File "/home/mcatanzaro/Projects/WebKit/WebKitBuild/DependenciesGTK/Source/jhbuild/jhbuild/config.py", line 220, in load _('unknown keys defined in configuration file: %s') % \ NameError: global name '_' is not defined It's tricky.
Michael Catanzaro
Comment 5
2017-11-20 15:51:16 PST
It has to be imported into Python's builtins namespace using gettext.install(), see
https://docs.python.org/2.7/library/gettext.html#gettext.install
. jhbuild does that itself, but we break that by trying to call into jhbuild's internal classes directly. So we have to do it ourselves. I'm confused because none of the code you moved did this, so I'm not sure how it worked before. But whatever.
Michael Catanzaro
Comment 6
2017-11-20 15:51:58 PST
Committed
r225055
: <
https://trac.webkit.org/changeset/225055
>
Michael Catanzaro
Comment 7
2017-11-20 16:55:08 PST
(In reply to Michael Catanzaro from
comment #6
)
> Committed
r225055
: <
https://trac.webkit.org/changeset/225055
>
Bots are happy again. Well, the API tests are still failing, but they're being run 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