Running adt-run without root installs the click for all users
Bug #1384417 reported by
Carla Sella
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
autopkgtest (Ubuntu) |
Fix Released
|
Low
|
Martin Pitt |
Bug Description
If you run:
adt-run ubuntu-clock-app/ --click com.ubuntu.
for instance, you get this error:
Cannot install /tmp/adt-
adt-run [21:18:00]: ERROR: unexpected error: click install failed with status 1
adt-run must be run with "-- -p password" to allow the click to be installed, instead.
If we don't have root the click shouldn't be installed for all users.
To post a comment you must log in.
Since we dropped autopilot from the images, you *need* to specify your sudo password (unless it's "0000" which the runner tries by default). Without having root on the phone there is no way that we can adjust the AppArmor policy for enabling autopilot to work.
But I fixed it up to the point that the test at least doesn't crash with this error: The click now installs, and AppArmor rule adjustment is just skipped, instead you get a warning
adt-run: WARNING: Cannot adjust AppArmor rules without root/sudo privileges; Autopilot tests will fail and test dependencies will not be available!
http:// anonscm. debian. org/cgit/ autopkgtest/ autopkgtest. git/commit/ ?id=0180f8b0