On Mon, Oct 12, 2026 at 11:44:23AM +1100, Ben Finney wrote:
I'm attempting to enable AutoPkgTest for a Python package [0], via the
control field “Testsuite: autopkgtest-pkg-pybuild”. The binary package
builds successfully [1], but the AutoPkgTest run does not include any of
the Python package and so runs no tests [2].

I think you need to point autopkgtest to the installed file explicitly (you either failed to mention that the only tests in the package are doctests in the actual module or missed that fact yourself).

What is failing, evidently, is AutoPkgTest's step of copying the Python
package and test files, into its test environment. From there, zero test
cases are found, and the step fails.

autopkgtest doesn't copy the package source into its test environment, because by design it uses the installed package, not its source. It doesn't copy test files for you because there aren't any.

[2]: Within the SBuild session, AutoPkgTest fails because the test
environment does not have the Python packages nor its test suite:

There is no separate test suite.

--
WBR, wRAR

Attachment: signature.asc
Description: PGP signature

Reply via email to