On Sat, Dec 28, 2024 at 11:41:19AM +0100, Simon Josefsson wrote:
> >> Hi.  Asking for some advice here, in python-netfilterqueue there is now:
> >> 
> >> export PYBUILD_TEST_ARGS=--ignore tests/conftest.py
> >
> > conftest.py is not a file with test cases, it's a "config" file for all
> > tests, ignoring it doesn't make sense and not running code from it (if
> > that's what you want) is likely impossible. I don't understand what do you
> > want to achieve by ignoring it so I cannot suggest anything useful though.
> 
> Thank you -- what I want to achieve is a build that succeeds after I
> remove this heavy hammer that ignores all self-tests errors:
> 
> override_dh_auto_test:
>       -dh_auto_test $(DH_BUILD_OPTS)
> 
> Maybe all of upstreams self-tests really do depend on the unshare
> module,

They likely do, considering that they all use it via pytest_runtestloop().

> and if we don't want to include that in Debian [1] there is no
> hope to get netfilterqeueue self-tests to work.  And then we just as
> well disable all self-tests like that.
> 
> /Simon
> 
> [1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1091506#10

That says "you can use this instead of that".

-- 
WBR, wRAR

Attachment: signature.asc
Description: PGP signature

Reply via email to