On Thu, Oct 31, 2024 at 07:08:20PM +0100, John Paul Adrian Glaubitz wrote:
> Hi Julian,
>
> On Thu, 2024-10-31 at 17:57 +0000, Julian Gilbey wrote:
> > On Thu, Oct 31, 2024 at 06:22:45PM +0100, John Paul Adrian Glaubitz wrote:
> > > (Please CC me as I'm not subscribed to this list)
> > >
> > > Hello,
> > >
> > > I need to override the standard test for pybuild and according to the manpage [1]
> > > this is achieved by passing "--test-custom" to pybuild. Unfortunately, it's actually
> > > not saying where exactly the parameter needs to go.
> > >
> > > I tried setting it via "export PYBUILD_OPTION=" but that didn't work.
> >
> > export PYBUILD_TEST_CUSTOM = 1
> > export PYBUILD_TEST_ARGS = <custom test command>
>
> Thanks a lot. I would have never guessed that.
>
> Meanwhile, I found the following alternative approach in the README.rst [1]:
>
> dh_auto_test -- --system=custom --test-args='{interpreter} setup.py test'
>
> Your suggestion looks cleaner. If it works, I'll use it. If not, I'll stick to the
> approach above as it actually works. Took me forever to figure this all out.
Note that when you use the PYBUILD_* variables, they also apply when
running under autopkgtest, so that is better than overiding the
dh_auto_test call.
Attachment:
signature.asc
Description: PGP signature