Package: autopkgtest
Version: 2.0.0
Severity: normal

Steps to reproduce:
1) dget http://lindi.iki.fi/lindi/autopkgtest/systemtap_1.6-1lindi1.dsc
2) script -c 'sudo adt-run --output-dir . systemtap_1.6-1lindi1.dsc --- 
adt-virt-null'

Expected results:
2) adt-run runs the tests

Actual results:
2) adt-run says that "build-needed" is not a valid restriction:

...
di1_amd64.deb!
adt-run: trace: * register what=dsc0 deb_fortests=auto pkg=systemtap-sdt-dev 
af=systemtap-sdt-dev_dsc0.deb:/tmp/tmpZefZCC/systemtap-sdt-dev_dsc0.deb!|/tmp/tmp.tb9XJaLCi1/dsc0-build/systemtap-sdt-dev_1.6-1lindi1_all.deb!
adt-run: trace: * register what=dsc0 deb_fortests=auto pkg=systemtap-server 
af=systemtap-server_dsc0.deb:/tmp/tmpZefZCC/systemtap-server_dsc0.deb!|/tmp/tmp.tb9XJaLCi1/dsc0-build/systemtap-server_1.6-1lindi1_amd64.deb!
adt-run: trace: * register what=dsc0 deb_fortests=auto pkg=systemtap 
af=systemtap_dsc0.deb:/tmp/tmpZefZCC/systemtap_dsc0.deb!|/tmp/tmp.tb9XJaLCi1/dsc0-build/systemtap_1.6-1lindi1_amd64.deb!
adt-run: trace: @@@@@@@@@@ read control ...
upstream-testsuite   SKIP unknown restriction build-needed (control line 3)
adt-run: trace: @@@@@@@@@@ run_tests ...
*                    SKIP package has metadata but no tests
adt-run: trace: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ tests done.
adt-run: trace: ** stop
adt-run: trace: ** close, 
scratch=tb-scratch~/tmp/tmp.tb9XJaLCi1:-/|/tmp/tmp.tb9XJaLCi1/!
Script done, file is typescript


More info:
1) The complete "typescript" file is attached.

2) If I build the package with debuild and then run

sudo adt-run --built-tree . --- adt-virt-null

from the built debian source tree then adt-run does not complain about
"build-needed".

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 3.0.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages autopkgtest depends on:
ii  python2.6                     2.6.7-3    An interactive high-level object-o

Versions of packages autopkgtest recommends:
ii  apt-utils                     0.8.15.5   APT utility programs

Versions of packages autopkgtest suggests:
ii  autopkgtest-xenlvm            2.0.0      Xen/LVM2 based testbed snapshot sy
pn  curl                          <none>     (no description available)

-- no debconf information

Attachment: typescript.bz2
Description: Binary data

Reply via email to