Bug#728049: adt-virt-schroot: avoid debconf prompts on running tests
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
- no script-config in schroot.conf (schroot complained about
- 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
description=Debian sid LVM snapshot
> 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:
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'
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.
-- arthur - adejong at debian.org - http://people.debian.org/~adejong --
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 198 bytes
Desc: This is a digitally signed message part