Sorry, the patch attached to the original submission was wrong. Please, consider the new one attached below.

BTW, I just filed a merge request against the Git repository for pbuilder at salsa.debian.org: https://salsa.debian.org/pbuilder-team/pbuilder/merge_requests/8

Best,

Rafael Laboissière

* Debian Bug Tracking System <ow...@bugs.debian.org> [2019-11-27 15:09]:

Thank you for filing a new Bug report with Debian.

You can follow progress on this Bug here: 945593: 
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=945593.

This is an automatically generated reply to let you know your message has been received.

Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course.

Your message has been sent to the package maintainer(s): Debian pbuilder maintenance team <team+pbuil...@tracker.debian.org>

If you wish to submit further information on this problem, please send it to 945...@bugs.debian.org.

Please do not send mail to ow...@bugs.debian.org unless you wish to report a problem with the Bug-tracking system.

--
945593: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=945593
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems

commit 3d5d7a24d2153604fb4f6acd445bd589148daf5a
Author: Rafael Laboissière <raf...@debian.org>
Date:   Wed Nov 27 12:05:00 2019 -0300

    e/B20autopkgtest: Use autodep8 in autopkgtest hook to check existence of tests
    
    The hook script B20autopkgtest fails to detect the existence of unit
    tests for packages that have no debian/tests/control file but that
    have autodep8 support.  This commit fixes the issue.
    
    Closes: #945593

diff --git a/examples/B20autopkgtest b/examples/B20autopkgtest
index 61eff862..ad85e582 100644
--- a/examples/B20autopkgtest
+++ b/examples/B20autopkgtest
@@ -36,8 +36,11 @@ set -ex
 
 cd "$BUILDDIR"/*/debian/..
 
-if [ ! -f debian/tests/control ]; then
-    echo "Package does not have autopkgtest support, debian/tests/control is missing"
+apt-get --yes install autodep8
+
+if [ -z "$(autodep8)" ]; then
+    echo "Package does not have autopkgtest support.  Either file"
+    echo "debian/tests/control is missing or there is no autodep8 support."
     exit 0
 fi
 

Reply via email to