[Bug 1259721] Re: Executing autopilot test suite fails to close when piped to tee
Martin Pitt
martin.pitt at ubuntu.com
Wed Dec 11 12:25:57 UTC 2013
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?
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to gobject-introspection in
Ubuntu.
https://bugs.launchpad.net/bugs/1259721
Title:
Executing autopilot test suite fails to close when piped to tee
Status in Autopilot:
Confirmed
Status in The "G" Library - GLib:
In Progress
Status in “gobject-introspection” package in Ubuntu:
In Progress
Bug description:
Executing "autopilot run autopilot | tee /tmp/autopilot.log" never
closes on my trusty box. The autopilot process closes (according to
"ps -ef") but the tee process stays open. It appears that tee is
missing the EOF.
I originally saw this on the CI autopilot runner:
http://s-jenkins.ubuntu-ci:8080/job/autopilot-testrunner-otto-trusty/1390/console
It appears I'm running an unreleased version:
python-autopilot:
Installed: 1.4+14.04.20131205.1-0ubuntu1
python-autopilot-tests:
Installed: 1.4+14.04.20131206.1-0ubuntu1
Will try again with the archive version and update the report.
To manage notifications about this bug go to:
https://bugs.launchpad.net/autopilot/+bug/1259721/+subscriptions
More information about the foundations-bugs
mailing list