adt-run does not work with autopilot on emulator
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | autopkgtest (Ubuntu) |
High
|
Martin Pitt | ||
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-
super().setUp()
File "/tmp/adt-
super().setUp()
File "/tmp/adt-
_uinput.
File "/tmp/adt-
return fn(*args, **kwargs)
File "/tmp/adt-
version=0x2, devnode=
File "/tmp/adt-
self._verify()
File "/tmp/adt-
raise UInputError(
evdev.uinput.
| Richard Huddie (rhuddie) wrote : | #1 |
| Changed in autopkgtest (Ubuntu): | |
| importance: | Undecided → High |
| assignee: | nobody → Martin Pitt (pitti) |
| milestone: | none → ubuntu-15.02 |
| Martin Pitt (pitti) wrote : | #2 |
Hm, I'm on almost the same version:
current build number: 92
device name: generic_x86
channel: ubuntu-
alias: ubuntu-
last update: 2015-02-05 03:25:51
I ran the tests like this:
bzr branch lp:ubuntu-sanity-tests
adt-run --setup-commands 'mount -o remount,ro /' -B ubuntu-
but they fail with something completely different:
adt-run [08:00:10]: test sanity: [------
The ubuntuuitoolkit
Loading tests from: /tmp/adt-
Traceback (most recent call last):
File "/usr/lib/
"__main__", mod_spec)
File "/usr/lib/
exec(code, run_globals)
File "/tmp/adt-
main()
File "/tmp/adt-
test_app.run()
File "/tmp/adt-
action()
File "/tmp/adt-
test_result = test_suite.
File "/usr/lib/
test(result)
File "/usr/lib/
return self.run(*args, **kwds)
File "/tmp/adt-
return super(WithScena
File "/tmp/adt-
return self.__
File "/tmp/adt-
return super().run(*args, **kwargs)
File "/tmp/adt-
return self._run_
File "/tmp/adt-
return self._run_
File "/tmp/adt-
handler(
File "/tmp/adt-
result.
File "/tmp/adt-
return self.decorated.
File "/tmp/adt-
return super(type(self), self).addError(
File "/tmp/adt-
return self.decorated.
File "/t...
| Martin Pitt (pitti) wrote : | #3 |
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-
from ubuntu_sanity_tests import sanity
ImportError: No module named 'ubuntu_
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://
adt-run [08:28:52]: test sanity: [------
The ubuntuuitoolkit
Loading tests from: /usr/lib/
Loading tests from: /tmp/adt-
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 |
| Martin Pitt (pitti) wrote : | #4 |
Indeed I don't get the weird error message from comment 2 with chmod 666 /dev/uinput. Can you confirm that this works for you on a fresh emulator?
adt-run --setup-commands 'mount -o remount,ro /; chmod 666 /dev/uinput' -B ubuntu-
This unpacks the test deps and starts running the tests here, and just fails due to the sudo password problem.
| Martin Pitt (pitti) wrote : | #5 |
This should be fixed with http://
| Changed in autopkgtest (Ubuntu): | |
| status: | Incomplete → Fix Committed |
| Launchpad Janitor (janitor) wrote : | #6 |
This bug was fixed in the package autopkgtest - 3.9.5git1
---------------
autopkgtest (3.9.5git1) vivid; urgency=medium
* Skip test_tmp_
available.
-- Martin Pitt <email address hidden> Wed, 11 Feb 2015 07:10:51 +0100
| Changed in autopkgtest (Ubuntu): | |
| status: | Fix Committed → Fix Released |


Adding emulator environment details:
current build number: 90 touch/devel- proposed touch/vivid- proposed
device name: generic_x86
channel: ubuntu-
alias: ubuntu-
last update: 2015-02-02 03:18:30
version version: 90
version ubuntu: 20150202
version device: 20150129
version custom: 20150202