[Bug 1417966] Re: adt-run does not work with autopilot on emulator
Martin Pitt
martin.pitt at ubuntu.com
Thu Feb 5 07:36:01 UTC 2015
When I run them on an r/w image so that the test dependencies actually
get installed with apt, this now fails with
adt-run [08:20:02]: test sanity: [-----------------------
Traceback (most recent call last):
File "/tmp/adt-run.qsFTLT/build.sGK/real-tree/debian/tests/sanity", line 23, in <module>
from ubuntu_sanity_tests import sanity
ImportError: No module named 'ubuntu_sanity_tests'
because it doesn't set PYTHONPATH=. anywhere, and the binary is in
debian/tests/. That's another reason why they currently can't work
runnning from the tree instead of from the package. I fixed that with
http://paste.ubuntu.com/10068247/ and now the tests actually do run. So
I recommend applying this patch to lp:ubuntu-sanity-tests. The tests
fail with
adt-run [08:28:52]: test sanity: [-----------------------
The ubuntuuitoolkit.emulators module is deprecated. Import the autopilot helpers from the top-level ubuntuuitoolkit module.
Loading tests from: /usr/lib/python3/dist-packages
Loading tests from: /tmp/adt-run.SVTNuP/build.0XB/real-tree
Sorry, try again.
Sorry, try again.
Sorry, try again.
sudo: 3 incorrect password attempts
adt-run [08:31:09]: test sanity: -----------------------]
adt-run [08:31:10]: test sanity: - - - - - - - - - - results - - - - - - - - - -
sanity FAIL non-zero exit status 1
But I did see quite some windows flying around; not sure what the sudo
thingy is, presumably the config.py device_password key doesn't default
to 0000?
But that still leaves me with not being able to reproduce your original
crash. Can you please tell me the precise steps and commands that you
did to get the /dev/uinput issue?
** Changed in: autopkgtest (Ubuntu)
Status: New => Incomplete
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to autopkgtest in Ubuntu.
https://bugs.launchpad.net/bugs/1417966
Title:
adt-run does not work with autopilot on emulator
Status in autopkgtest package in Ubuntu:
Incomplete
Bug description:
When trying to run autopilot tests (lp:ubuntu-sanity-tests) on the ubuntu emulator, the test fails with the following error. If the autopilot tests are installed and run directly on the emulator, they will work ok. This problem only happens when trying to use adt-run:
Traceback (most recent call last):
File "/tmp/adt-run.tQuWXi/build.KbZ/real-tree/ubuntu_sanity_tests/tests/test_edges_demo.py", line 41, in setUp
super().setUp()
File "/tmp/adt-run.tQuWXi/build.KbZ/real-tree/ubuntu_sanity_tests/tests/base.py", line 42, in setUp
super().setUp()
File "/tmp/adt-run.tQuWXi/deps/usr/lib/python3/dist-packages/unity8/shell/tests/__init__.py", line 164, in setUp
_uinput._touch_device = _uinput.create_touch_device()
File "/tmp/adt-run.tQuWXi/deps/usr/lib/python3/dist-packages/autopilot/utilities.py", line 265, in wrapped
return fn(*args, **kwargs)
File "/tmp/adt-run.tQuWXi/deps/usr/lib/python3/dist-packages/autopilot/input/_uinput.py", line 235, in create_touch_device
version=0x2, devnode=_get_devnode_path())
File "/tmp/adt-run.tQuWXi/deps/usr/lib/python3/dist-packages/evdev/uinput.py", line 66, in __init__
self._verify()
File "/tmp/adt-run.tQuWXi/deps/usr/lib/python3/dist-packages/evdev/uinput.py", line 186, in _verify
raise UInputError(msg.format(self.devnode))
evdev.uinput.UInputError: "/dev/uinput" cannot be opened for writing
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/autopkgtest/+bug/1417966/+subscriptions
More information about the foundations-bugs
mailing list