I'm afraid I can't reproduce the original problem here. If I run this test, I see a few windows (Mahjong, terminal, etc.) flying by, and after a few seconds it crashes with
$ autopilot run autopilot.tests.functional.test_open_window.OpenWindowTests.test_open_window
Loading tests from: /usr/lib/python2.7/dist-packages
Tests running...
** (gedit:16944): WARNING **: Could not load Gedit repository: Typelib file for namespace 'GtkSource', version '3.0' not found
======================================================================
ERROR: autopilot.tests.functional.test_open_window.OpenWindowTests.test_open_window(System Settings)
----------------------------------------------------------------------
Traceback (most recent call last):
_StringException: Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/autopilot/tests/functional/test_open_window.py", line 44, in test_open_window
win = self.process_manager.start_app_window(self.app_name)
File "/usr/lib/python2.7/dist-packages/autopilot/process/_bamf.py", line 139, in start_app_window
window = self._open_window(app_name, files, locale)
File "/usr/lib/python2.7/dist-packages/autopilot/process/_bamf.py", line 164, in _open_window
self._launch_application(app['desktop-file'], files)
File "/usr/lib/python2.7/dist-packages/autopilot/process/_bamf.py", line 329, in _launch_application
proc = Gio.DesktopAppInfo.new(desktop_file)
TypeError: constructor returned NULL
Ran 7 tests in 8.227s
FAILED (failures=1)
and it behaves exactly the same way with "... | tee /tmp/foo". Trunk shows the exact same behaviour with
python -m autopilot.run run autopilot.tests.functional.test_open_window.OpenWindowTests.test_open_window | tee /tmp/foo
I understand this would only hang if there is an application which does not close automatically again. Does that happen in your case?
I'm afraid I can't reproduce the original problem here. If I run this test, I see a few windows (Mahjong, terminal, etc.) flying by, and after a few seconds it crashes with
$ autopilot run autopilot. tests.functiona l.test_ open_window. OpenWindowTests .test_open_ window python2. 7/dist- packages
Loading tests from: /usr/lib/
Tests running...
** (gedit:16944): WARNING **: Could not load Gedit repository: Typelib file for namespace 'GtkSource', version '3.0' not found ======= ======= ======= ======= ======= ======= ======= ======= ======= tests.functiona l.test_ open_window. OpenWindowTests .test_open_ window( System Settings) ------- ------- ------- ------- ------- ------- ------- ------- ------- python2. 7/dist- packages/ autopilot/ tests/functiona l/test_ open_window. py", line 44, in test_open_window manager. start_app_ window( self.app_ name) python2. 7/dist- packages/ autopilot/ process/ _bamf.py" , line 139, in start_app_window window( app_name, files, locale) python2. 7/dist- packages/ autopilot/ process/ _bamf.py" , line 164, in _open_window _launch_ application( app['desktop- file'], files) python2. 7/dist- packages/ autopilot/ process/ _bamf.py" , line 329, in _launch_application nfo.new( desktop_ file)
=======
ERROR: autopilot.
-------
Traceback (most recent call last):
_StringException: Traceback (most recent call last):
File "/usr/lib/
win = self.process_
File "/usr/lib/
window = self._open_
File "/usr/lib/
self.
File "/usr/lib/
proc = Gio.DesktopAppI
TypeError: constructor returned NULL
Ran 7 tests in 8.227s
FAILED (failures=1)
and it behaves exactly the same way with "... | tee /tmp/foo". Trunk shows the exact same behaviour with
python -m autopilot.run run autopilot. tests.functiona l.test_ open_window. OpenWindowTests .test_open_ window | tee /tmp/foo
I understand this would only hang if there is an application which does not close automatically again. Does that happen in your case?