Autopilot tests fail on vivid because the name of the calculator desktop file changed

Bug #1411096 reported by Leo Arias
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Autopilot
Fix Released
High
Leo Arias
autopilot (Ubuntu)
New
Undecided
Unassigned

Bug Description

Three tests are failing on vivid with a trace like this:

_StringException: Binary content:
  FailedTestScreenshot (image/png)

test-log: {{{
18:24:44.094 ERROR content:47 - Could not add content object 'None' due to IO Error: [Errno 13] Permission denied: '/var/log/syslog'
18:24:44.095 DEBUG _video:79 - Starting: ['/usr/bin/recordmydesktop', '--no-sound', '--no-frame', '-o', '/tmp/autopilot/autopilot.tests.functional.test_process_emulator.ProcessEmulatorTests.test_start_app_window.ogv']
18:24:45.103 INFO _bamf:156 - Starting application 'Calculator' with files [] in locale C
}}}

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/autopilot/tests/functional/test_process_emulator.py", line 94, in test_start_app_window
    app = self.process_manager.start_app_window('Calculator', locale='C')
  File "/usr/lib/python3/dist-packages/autopilot/process/_bamf.py", line 137, in start_app_window
    window = self._open_window(app_name, files, locale)
  File "/usr/lib/python3/dist-packages/autopilot/process/_bamf.py", line 162, in _open_window
    self._launch_application(app['desktop-file'], files)
  File "/usr/lib/python3/dist-packages/autopilot/process/_bamf.py", line 326, in _launch_application
    proc = _launch_application(desktop_file, files)
  File "/usr/lib/python3/dist-packages/autopilot/process/_bamf.py", line 333, in _launch_application
    proc = Gio.DesktopAppInfo.new(desktop_file)
TypeError: constructor returned NULL

Gio.DesktopAppInfo is failing because it doesn't find the desktop file. It doesn't find the desktop file, because it's name has been updated.

Related branches

Revision history for this message
Leo Arias (elopio) wrote :

Also system settings and mahjongg are outdated.

Changed in autopilot:
status: Triaged → Fix Committed
Changed in autopilot:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.