touch-packages team mailing list archive
-
touch-packages team
-
Mailing list archive
-
Message #74438
[Bug 1319621] Re: The autopilot tests execute code at the module level (at import time)
** Project changed: messaging-app => messaging-app (Ubuntu)
--
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to messaging-app in Ubuntu.
https://bugs.launchpad.net/bugs/1319621
Title:
The autopilot tests execute code at the module level (at import time)
Status in messaging-app package in Ubuntu:
Confirmed
Bug description:
Installing messaging-app-autopilot on my desktop and listing the
available autopilot tests causes some account setup code to be
executed which appears to attempt to create a network connection too?
This code should not just blindly execute at the module level (as it
gets run when imported i.e. listing the available tests.) and should
definitely not get executed on the desktop if it's going to break
things.
Below is this is the command that I used and the output that I saw.
On top of this output I saw a network manager popup stating that some connection had failed.
In my NetworkManager drop down I now have some option named '/246813579/context1' (I've attempted to show this in the attached screen shot but it's in the process of hiding the dropdown).
$ python -m autopilot.run list messaging_app
mc-tool: couldn't load account 'ofono/ofono/account0': Method "GetAll" with signature "s" on interface "org.freedesktop.DBus.Properties" doesn't exist
Try 'mc-tool list' to list known accounts.
creating ofono/ofono/account0
ofono/ofono/account0
enabling ofono/ofono/account0
ofono accounts initialized
initctl: Unknown job: maliit-server
Loading tests from: /usr/lib/python2.7/dist-packages
.. snip ...
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/messaging-app/+bug/1319621/+subscriptions