From: Ian Jackson Date: Tue, 26 Jul 2011 12:34:00 +0000 (+0100) Subject: adt-virt-schroot: actually become root on testbed if root-on-testbed X-Git-Tag: debian/2.0.0~35 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=0d82094807a3e56570c41993a4749779acf7d6f6;p=autopkgtest.git adt-virt-schroot: actually become root on testbed if root-on-testbed --- diff --git a/virt-subproc/adt-virt-schroot b/virt-subproc/adt-virt-schroot index 32bd783..b75f59d 100755 --- a/virt-subproc/adt-virt-schroot +++ b/virt-subproc/adt-virt-schroot @@ -80,7 +80,9 @@ def parse_args(): def hook_open(): global schroot, sessid, downtmp sessid = vsp.execute('schroot -b -c',[schroot], downp=False, outp=True) - vsp.down = ['schroot','-r','-c',sessid,'--','sh','-c'] + vsp.down = ['schroot','-r','-c',sessid] + if 'root-on-testbed' in capabilities: vsp.down += ['-u','root'] + vsp.down += ['--','sh','-c'] return None def hook_cleanup():