Bug#648148: autopkgtest: Support running as user

Martin Pitt martin.pitt at ubuntu.com
Wed Nov 9 07:50:15 UTC 2011


Package: autopkgtest
Severity: wishlist
Version: 2.0.1
Tags: patch
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu ubuntu-patch precise

Hello,

for testing build recipes I'd like to skip all the apt parts and run
adt-run as normal user. This currently fails because it always tries
to set up apt.

Attached patch skips the apt parts if running as non-root and prints a
warning. The second hunk is necessary because opts.user defaults to
'', not to None, and thus "opts.user is not None" is always True and
it always tries to call su (which doesn't work as normal user).

Thanks,

Martin

-- 
Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: autopkgtest.run-as-user.patch
Type: text/x-diff
Size: 839 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/autopkgtest-devel/attachments/20111109/fb95bc7c/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/autopkgtest-devel/attachments/20111109/fb95bc7c/attachment.pgp>


More information about the autopkgtest-devel mailing list