Merge lp:~pwlars/phablet-tools/network-no-sudo into lp:phablet-tools
Proposed by
Paul Larson
Status: | Merged |
---|---|
Approved by: | Oliver Grawert |
Approved revision: | 318 |
Merged at revision: | 320 |
Proposed branch: | lp:~pwlars/phablet-tools/network-no-sudo |
Merge into: | lp:phablet-tools |
Diff against target: |
17 lines (+5/-2) 1 file modified
phablet-network (+5/-2) |
To merge this branch: | bzr merge lp:~pwlars/phablet-tools/network-no-sudo |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
PS Jenkins bot | continuous-integration | Approve | |
Ubuntu Phablet Team | Pending | ||
Review via email: mp+235689@code.launchpad.net |
Commit message
Don't use sudo in phablet-network unless it's really needed
Description of the change
We're trying to eliminate the sources of sudo needed in the ci testing process. In this case, even if you specify a network file for phablet-network to use and you have full permissions on it, phablet-network uses sudo to grep for the lines it needs from it unnecessarily. This fixes that so that it should only use sudo if the file is unreadable by the current user.
To post a comment you must log in.
PASSED: Continuous integration, rev:318 jenkins. qa.ubuntu. com/job/ phablet- tools-ci/ 408/ jenkins. qa.ubuntu. com/job/ phablet- tools-utopic- amd64-ci/ 89 jenkins. qa.ubuntu. com/job/ phablet- tools-utopic- armhf-ci/ 89 jenkins. qa.ubuntu. com/job/ phablet- tools-utopic- i386-ci/ 89
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
Click here to trigger a rebuild: s-jenkins. ubuntu- ci:8080/ job/phablet- tools-ci/ 408/rebuild
http://