GNOME Bugzilla – Bug 725152
Tests fail if accessibility was not enabled explicitly
Last modified: 2014-02-25 15:56:42 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
Review of attachment 270277 [details] [review]: Looks good
Pushed as https://git.gnome.org/browse/gnome-weather/commit/?id=fb691df3ec584ca1de6c95b3b31cfb7863ad4823
Passed in http://build.gnome.org/continuous/buildmaster/builds/2014/02/25/41/integrationtest/output.txt