After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 725152 - Tests fail if accessibility was not enabled explicitly
Tests fail if accessibility was not enabled explicitly
Status: RESOLVED FIXED
Product: gnome-weather
Classification: Applications
Component: build
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: GNOME Weather Maintainer(s)
GNOME Weather Maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2014-02-25 14:16 UTC by Vadim Rutkovsky
Modified: 2014-02-25 15:56 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Enable a11y in tests before dogtail imports (1.21 KB, patch)
2014-02-25 14:16 UTC, Vadim Rutkovsky
accepted-commit_now Details | Review

Description Vadim Rutkovsky 2014-02-25 14:16:38 UTC
Created attachment 270277 [details] [review]
Enable a11y in tests before dogtail imports

From http://build.gnome.org/continuous/buildmaster/builds/2014/02/25/32/integrationtest/work-gnome-continuous-x86_64-runtime/journal.txt:
gnome-session: Running test: org.gnome.Weather.Application/world_view.py.test
gnome-session: /usr/lib/python2.7/site-packages/dogtail/utils.py:169: PyGIDeprecationWarning: MainLoop is deprecated; use GLib.MainLoop instead
gnome-session: main_loop = GObject.MainLoop()
gnome-session: /usr/lib/python2.7/site-packages/dogtail/utils.py:257: PyGIDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keywords for schema or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations
gnome-session: InterfaceSettings = Settings(a11yDConfKey)
gnome-session: Creating logfile at /tmp/dogtail-testuser/logs/world_view_20140225-122436_debug ...
gnome-session: Dogtail requires that Assistive Technology support be enabled.
gnome-session: You can enable accessibility with sniff or by running:
gnome-session: 'gsettings set org.gnome.desktop.interface toolkit-accessibility true'
gnome-session: Aborting...
gnome-desktop-testing-runner: FAILED: org.gnome.Weather.Application/world_view.py.test (Child process exited with code 1)

The attached patch is enabling a11y before any dogtail import
Comment 1 Giovanni Campagna 2014-02-25 14:17:41 UTC
Review of attachment 270277 [details] [review]:

Looks good