Source: scapy
Version: 2.7.0+dfsg1-1
Severity: normal
Tags: patch
X-Debbugs-Cc: [email protected]
User: [email protected]
Usertags: origin-ubuntu tenacious ubuntu-patch
Hi,
The autopkgtest of scapy 2.8.0+dfsg-1 fails in debci and in Ubuntu with:
cp: cannot stat '../src': No such file or directory
run-upstream-tests FAIL non-zero exit status 1
debian/tests/run-upstream-tests starts with "cp -a -r ../src
$AUTOPKGTEST_TMP", which only worked because autopkgtest used to unpack the
source package as <builddir>/src. Since autopkgtest commit 3b063dad
("build_source: use one fixed location for the source tree"), the tree is
extracted into <scratch>/tests-tree, so ../src does not exist anymore.
ref: https://salsa.debian.org/ci-team/autopkgtest/-/commit/3b063da
autopkgtest documents that the cwd of each test is the root of the source
package, so the attached patch copies the current directory instead:
-cp -a -r ../src $AUTOPKGTEST_TMP
+cp -a -r . "$AUTOPKGTEST_TMP/src"
The rest of the script (cd $AUTOPKGTEST_TMP/src, run_tests) is unchanged.
I only checked that the new cp command produces
$AUTOPKGTEST_TMP/src/test/run_tests
from the unpacked 2.8.0+dfsg tree; I did not run the upstream test suite with
the patch applied.
Cheers,
Sebastien
-- System Information:
Debian Release: forky/sid
APT prefers resolute-updates
APT policy: (500, 'resolute-updates'), (500, 'resolute-security'), (500,
'resolute'), (100, 'resolute-backports')
Architecture: amd64 (x86_64)
Kernel: Linux 7.0.0-44-generic (SMP w/16 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_WARN, TAINT_OOT_MODULE
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
--- a/debian/tests/run-upstream-tests
+++ b/debian/tests/run-upstream-tests
@@ -6,7 +6,7 @@
# tests in autopkgtest
export HOME=$AUTOPKGTEST_TMP
-cp -a -r ../src $AUTOPKGTEST_TMP
+cp -a -r . "$AUTOPKGTEST_TMP/src"
cd $AUTOPKGTEST_TMP/src