Package: autopkgtest
Version: 3.3.2
Severity: normal
Let me show how I can currently reproduce this bug.
First, I download the source for spamassassin (I don't think it's
related to spamassassin tests per se, it just happens to be the package
I saw the problem with):
$ apt-get source spamassassin
[...]
Then I run the tests passing the source directory (equivalent to passing
--built-tree):
888-
$ adt-run --user debci spamassassin-3.4.0/ --- schroot debci-unstable-amd64
adt-run [15:08:48]: version 3.3.2
adt-run [15:08:49]: testbed dpkg architecture: amd64
adt-run [15:08:49]: built-tree spamassassin-3.4.0/
adt-run [15:08:49]: testing package spamassassin version 3.4.0-2
adt-run [15:08:49]: test spamassassin.nospam: preparing
Selecting previously unselected package adt-satdep.
... snip installation of dependencies ...
adt-run [15:08:59]: test spamassassin.nospam: [---
/tmp/adt-run.FL2v8q/tree/debian/tests/spamassassin.nospam: line 7: python:
command not found
ERROR: POINTS SHOULD BE ZERO
adt-run [15:09:00]: test spamassassin.nospam: ---]
adt-run [15:09:00]: test spamassassin.nospam: - - - - - - - - - - results - -
- - - - - - - -
spamassassin.nospam FAIL non-zero exit status 1
adt-run [15:09:00]: test spamassassin.spam: preparing
(Reading database ... 12244 files and directories currently installed.)
Preparing to unpack .../adt-run.FL2v8q/adt-satdep.deb ...
Unpacking adt-satdep (0) over (0) ...
Reading package lists...
Building dependency tree...
Reading state information...
Starting pkgProblemResolver with broken count: 0
Starting 2 pkgProblemResolver with broken count: 0
Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up adt-satdep (0) ...
Unexpected error:
Traceback (most recent call last):
File /usr/share/autopkgtest/python/VirtSubproc.py, line 617, in mainloop
command()
File /usr/share/autopkgtest/python/VirtSubproc.py, line 552, in command
r = f(c, ce)
File /usr/share/autopkgtest/python/VirtSubproc.py, line 494, in cmd_copydown
copyupdown(c, ce, False)
File /usr/share/autopkgtest/python/VirtSubproc.py, line 417, in copyupdown
copydown_shareddir(sd[0], sd[1], dirsp, downtmp_host)
File /usr/share/autopkgtest/python/VirtSubproc.py, line 374, in
copydown_shareddir
shutil.copytree(host, host_tmp, symlinks=True)
File /usr/lib/python3.4/shutil.py, line 302, in copytree
os.makedirs(dst)
File /usr/lib/python3.4/os.py, line 237, in makedirs
mkdir(name, mode)
FileExistsError: [Errno 17] File exists:
'/var/lib/schroot/mount/debci-unstable-amd64-06662192-e8ac-4c1a-aaf7-e36c434659c6/tmp/adt-run.FL2v8q/tree'
adt-run [15:09:02]: ERROR: testbed failed: cannot send to testbed:
['BrokenPipeError: [Errno 32] Broken pipe\n']
888-
Then, if I run adt-run with the same arguments, but passing the package name
instead (equivalent to passing --apt-source).
888-
$ adt-run --user debci spamassassin --- schroot debci-unstable-amd64
adt-run [15:09:09]: version 3.3.2
adt-run [15:09:09]: testbed dpkg architecture: amd64
adt-run [15:09:09]: apt-source spamassassin
... snip installation of dependencies ...
adt-run [15:09:31]: test spamassassin.nospam: [---
/tmp/adt-run.zjnpdq/build.9hA/spamassassin-3.4.0/debian/tests/spamassassin.nospam:
line 7: python: command not found
ERROR: POINTS SHOULD BE ZERO
adt-run [15:09:31]: test spamassassin.nospam: ---]
adt-run [15:09:31]: test spamassassin.nospam: - - - - - - - - - - results - -
- - - - - - - -
spamassassin.nospam FAIL non-zero exit status 1
adt-run [15:09:31]: test spamassassin.spam: preparing
(Reading database ... 13020 files and directories currently installed.)
Preparing to unpack .../adt-run.zjnpdq/adt-satdep.deb ...
Unpacking adt-satdep (0) over (0) ...
Reading package lists...
Building dependency tree...
Reading state information...
Starting pkgProblemResolver with broken count: 0
Starting 2 pkgProblemResolver with broken count: 0
Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up adt-satdep (0) ...
adt-run [15:09:35]: test spamassassin.spam: [---
/tmp/adt-run.zjnpdq/build.9hA/spamassassin-3.4.0/debian/tests/spamassassin.spam:
line 7: python: command not found
ERROR: POINTS SHOULD BE HIGHER THAN ZERO
adt-run [15:09:35]: test spamassassin.spam: ---]
adt-run [15:09:35]: test spamassassin.spam: - - - - - - - - - - results - - -
- - - - - - -
spamassassin.spamFAIL non-zero exit status 1
adt-run [15:09:35]: test daemon: