Package: pbuilder
Version: 0.230.4
Severity: normal
Tags: patch

Dear Maintainer,

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. The patch attached to this bug report fixes the issue.

Please, consider integrating it into the nexte release of pbuilder.

Best,

Rafael Laboissière
diff --git a/examples/B20autopkgtest b/examples/B20autopkgtest
index 61eff862..b41cba80 100644
--- a/examples/B20autopkgtest
+++ b/examples/B20autopkgtest
@@ -36,6 +36,14 @@ set -ex
 
 cd "$BUILDDIR"/*/debian/..
 
+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
+
 if [ ! -f debian/tests/control ]; then
     echo "Package does not have autopkgtest support, debian/tests/control is missing"
     exit 0

Reply via email to