Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.python > #16440

Re: Testsuite: autopkgtest-pkg-pybuild: weird behavior in my uploaded package

Path csiph.com!fu-berlin.de!bofh.it!news.nic.it!robomod
From Roland Mas <lolando@debian.org>
Newsgroups linux.debian.maint.python
Subject Re: Testsuite: autopkgtest-pkg-pybuild: weird behavior in my uploaded package
Date Fri, 08 Nov 2024 10:20:01 +0100
Message-ID <JGtjP-7svs-11@gated-at.bofh.it> (permalink)
References <JGrBn-7rfh-3@gated-at.bofh.it> <JGrBn-7rfh-1@gated-at.bofh.it>
X-Mailbox-Line From debian-python-request@lists.debian.org Fri Nov 8 09:11:56 2024
Old-Return-Path <lolando@debian.org>
X-Amavis-Spam-Status No, score=-107.55 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIMWL_WL_HIGH=-0.34, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, LDO_WHITELIST=-5, USER_IN_DKIM_WELCOMELIST=-0.01, USER_IN_DKIM_WHITELIST=-100] autolearn=ham autolearn_force=no
X-Policyd-Weight using cached result; rate: -3.5
X-Greylist delayed 500 seconds by postgrey-1.36 at bendel; Fri, 08 Nov 2024 09:11:43 UTC
MIME-Version 1.0
User-Agent Mozilla Thunderbird
Content-Language fr
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 8bit
X-Mailing-List <debian-python@lists.debian.org> archive/latest/22512
List-ID <debian-python.lists.debian.org>
List-URL <https://lists.debian.org/debian-python/>
List-Archive https://lists.debian.org/msgid-search/0f375e4f-9ed6-4389-90da-d3ce08f91b56@debian.org
Approved robomod@news.nic.it
Lines 26
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Date Fri, 8 Nov 2024 10:03:18 +0100
X-Original-Message-ID <0f375e4f-9ed6-4389-90da-d3ce08f91b56@debian.org>
X-Original-References <1e05c05d-299e-4185-a833-3c08520d535a@debian.org> <Zy27rPBbzTLDSIxg@belkar.wrar.name>
Xref csiph.com linux.debian.maint.python:16440

Show key headers only | View raw


Le 08/11/2024 à 08:20, Andrey Rakhmatullin a écrit :
> On Thu, Nov 07, 2024 at 08:34:29PM -0500, Boyuan Yang wrote:
>> According to pybuild-autopkgtest(1) [1], it seems that Python packages that
>> uses Testsuite: autopkgtest-pkg-build will "run the tests in the same way as
>> pybuild ... exception that tests are not run in the build directory". I have
>> some confusion on it with my recent uploads.
>>
>> When I look at fscacher/0.4.1-1.1 upload [2], the autopkgtest failure for
>> this upload is weird. In [3], it looks like the tests are still to be
>> executed in the "build" directory.
> There is no package build directory when autopkgtest runs, because
> autopkgtest runs in a new separate chroot. That's what the line from the
> manpage means.
>
>> Since this package is not built in autopkgtest, pytest cannot find
>> anything to test and then directly fails:
> It's not directly related to building, it's just because your tests are in
> src/fscacher/tests and so they are not copied into the test dir by
> default. I don't know what's the preferred best practice for such
> packages,

You need to list the files required for testing in 
debian/pybuild.testfiles. Then both dh_auto_test and 
autopkgtest-pkg-pybuild do the right thing.

Roland.

Back to linux.debian.maint.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: Testsuite: autopkgtest-pkg-pybuild: weird behavior in my  uploaded package Andrey Rakhmatullin <wrar@debian.org> - 2024-11-08 08:30 +0100
  Re: Testsuite: autopkgtest-pkg-pybuild: weird behavior in my uploaded  package Roland Mas <lolando@debian.org> - 2024-11-08 10:20 +0100
    Re: Testsuite: autopkgtest-pkg-pybuild: weird behavior in my  uploaded package Andrey Rakhmatullin <wrar@debian.org> - 2024-11-08 11:30 +0100
      Re: Testsuite: autopkgtest-pkg-pybuild: weird behavior in my  uploaded package Antonio Terceiro <terceiro@debian.org> - 2024-11-11 22:40 +0100

csiph-web