Bug#728049: adt-virt-schroot: avoid debconf prompts on running tests

Arthur de Jong adejong at debian.org
Mon Oct 28 21:46:32 UTC 2013


On Mon, 2013-10-28 at 10:44 +0100, Martin Pitt wrote:
> Can you please give me a reproducible example? I'm unable to reproduce
> that, I tried to add e. g. "mysql-server-5.5" (which always asks for a
> root password) as a test dependency, and I didn't see a debconf prompt
> with adt-run. I tried this with both the schroot and the null runner.

I'm seeing it with the prompts for slapd (both slapd/password1 and
slapd/password2 which both have priority high) and from nss-pam-ldapd
(the package that I'm trying to make tests for).

I'm running the tests with
  adt-run nss-pam-ldapd_0.9.2-1.dsc --- adt-virt-schroot sid-snap

The schroot was set up mostly as set seen in README.schroot-setup. The
differences are:
- no script-config in schroot.conf (schroot complained about
  the option)
- used sid instead of wheezy
- a few more packages were installed alongside dpkg-dev and
  build-essential: eatmydata debhelper autotools-dev
  libkrb5-dev libldap2-dev libsasl2-dev po-debconf docbook2x
  docbook-xml libpam0g-dev python python-daemon python-ldap

schroot.conf:

[sid-snap]
type=lvm-snapshot
description=Debian sid LVM snapshot
groups=root
root-users=arthur
root-groups=root
source-root-users=arthur
device=/dev/babbel/schroot-sid
mount-options=-o atime,sync,user_xattr
lvm-snapshot-options=--size 10G

> adt-run already sets DEBIAN_FRONTEND=noninteractive, so I suppose this
> either doesn't stick in some cases or it's not applied correctly.

Output from env within a test script:

USER=root
HOME=/root
OLDPWD=/
SCHROOT_CHROOT_NAME=sid-snap
SCHROOT_UID=1000
TMPDIR=/tmp/adt-run.WvJ4Mf/dsc0t-testsuite-testtmp/tmpdir
LOGNAME=root
ADTTMP=/tmp/adt-run.WvJ4Mf/dsc0t-testsuite-testtmp/adttmp
TERM=xterm
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
SCHROOT_COMMAND=sh -c set -e; exec  0<'/dev/null' 1>'/tmp/adt-run.WvJ4Mf/dsc0t-testsuite-stdout' 2>'/tmp/adt-run.WvJ4Mf/dsc0t-testsuite-stderr'; cd '/tmp/adt-run.WvJ4Mf/dsc0-tests-tree/'; TMPDIR='/tmp/adt-run.WvJ4Mf/dsc0t-testsuite-testtmp/tmpdir' ADTTMP='/tmp/adt-run.WvJ4Mf/dsc0t-testsuite-testtmp/adttmp' LANG='C' exec '/tmp/adt-run.WvJ4Mf/dsc0-tests-tree/debian/tests/testsuite'
SCHROOT_SESSION_ID=sid-snap-17f3fe80-8d5c-4fd8-8986-2f3c8cc7acd9
SCHROOT_ALIAS_NAME=sid-snap
LANG=C
SCHROOT_GROUP=users
SCHROOT_USER=arthur
SHELL=/bin/bash
PWD=/tmp/adt-run.WvJ4Mf/dsc0-tests-tree
SCHROOT_GID=100

One thing that may be a little off is that my home directory isn't
readable by root (NFS mount) so I've copied the debian source package
to /tmp/a before starting adt-run.

The above is from autopkgtest 2.4.

Thanks,

-- 
-- arthur - adejong at debian.org - http://people.debian.org/~adejong --
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.alioth.debian.org/pipermail/autopkgtest-devel/attachments/20131028/80ef2784/attachment.sig>


More information about the autopkgtest-devel mailing list