Bug#828025: autopkgtest cmd sensitive to PWD when passed an absolute path to a .changes file
Sean Whitton
spwhitton at spwhitton.name
Fri Jun 24 00:48:09 UTC 2016
Package: autopkgtest
Version: 4.0.1
Severity: normal
Dear maintainers,
When passing an absolute path to a changes file to autopkgtest, e.g.
$ autopkgtest /home/spwhitton/src/foo_1.0.0_i386.changes -- schroot unstable-i386-sbuild
autopkgtest fails and prints a usage message unless the PWD is
/home/spwhitton/src/foo. If the PWD is /home/spwhitton/src or anywhere
else:
usage: autopkgtest [options] [testbinary ...] testsrc -- virt-server [options]
autopkgtest: error: You must specify source or click package to test
autopkgtest should look for the .dsc mentioned in the .changes file in
the directory containing the .changes file.
Workaround I'm using in a shell script:
(
cd "$(dirname $1)/$(basename $1 | cut -d_ -f1)"
autopkgtest "$1" -- schroot "$2"
)
where $1 is the .changes file and $2 is the sbuild schroot.
Thanks!
-- System Information:
Debian Release: stretch/sid
APT prefers testing
APT policy: (900, 'testing')
Architecture: i386 (i686)
Kernel: Linux 4.6.0-1-686-pae (SMP w/2 CPU cores)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages autopkgtest depends on:
ii apt-utils 1.2.13
ii libdpkg-perl 1.18.7
ii procps 2:3.3.11-3
ii python3 3.5.1-4
ii python3-debian 0.1.27
Versions of packages autopkgtest recommends:
ii autodep8 0.6
Versions of packages autopkgtest suggests:
pn lxc <none>
pn lxd-client <none>
pn qemu-system <none>
ii qemu-utils 1:2.6+dfsg-3
ii schroot 1.6.10-2
-- no debconf information
--
Sean Whitton
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/autopkgtest-devel/attachments/20160624/5b608395/attachment.sig>
More information about the autopkgtest-devel
mailing list