Merge lp:~pwlars/ubuntu-test-cases/user-adb-support into lp:ubuntu-test-cases/touch
Status: | Merged |
---|---|
Merged at revision: | 275 |
Proposed branch: | lp:~pwlars/ubuntu-test-cases/user-adb-support |
Merge into: | lp:ubuntu-test-cases/touch |
Diff against target: |
124 lines (+18/-14) 5 files modified
scripts/jenkins.sh (+5/-5) scripts/provision.sh (+6/-3) scripts/run-autopilot-tests.sh (+4/-4) scripts/run-smoke (+2/-1) utils/target/prepare-autopilot-test.sh (+1/-1) |
To merge this branch: | bzr merge lp:~pwlars/ubuntu-test-cases/user-adb-support |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Para Siva (community) | Approve | ||
Review via email: mp+225893@code.launchpad.net |
Description of the change
I want to go ahead and throw this out there for review, but I'm not 100% confident in it just yet, so please don't merge *yet*.
This adds support for the upcoming changes that will make adb run as the phablet user rather than root. For CI, that means that when we turn on developer mode to get adb at all, and adb to the device, we will be running as the phablet user rather than root, and the phablet user will not come preconfigured with NOPASSWD sudo.
This MP first enables NOPASSWD sudo for the phablet user (with the assumption that we will use --password phablet for udf when it is supported). It also changes the calls to adb shell so that we make no assumptions about whether we are running as phablet or root.
I've run through it without the updated adbd and it appears to be happy with our current environment. I've also manually installed an image with the updated adbd from ogra and bypassed the udf line to have it run provision as if the image had already been installed. The only problem I hit so far on this with provision was the call to phablet-network fails because it tries to push the network config without proper permissions. Since we are relying on those tools like everyone else, I'm assuming they will be fixed up as part of the upcoming change.
Just one question inline, but looks fine by me otherwise.