Re: PYTEST_ARGS isn't respected with pytest placed in USE_PYTHON

Charlie Li <[email protected]>
Newsgroups gmane.os.freebsd.devel.ports
Organization FreeBSD Project
Message-ID <[email protected]>
Nuno Teixeira wrote:
> Hello Charlie,
> 
> Sorry but I didn't understanded your explanation.
> What we got is that if I'll do the following changes to port: comms/py- 
> streamdeck, PYTEST_ARGS isn't respected:
> 
> - USES= dos2unix pytest python
> + USES= dos2unix python
> - USE_PYTHON= autoplist pep517
> + USE_PYTHON= autoplist pep517 pytest
> PYTEST_ARGS= test.py
> 
${PYTEST_ARGS} is not respected with USE_PYTHON=pytest because 
${PYTEST_ARGS} is not used at all. USE_PYTHON=pytest executes pytest 
directly, with the only arguments dealing with individual tests to skip.

This particular port/package does not use or mention pytest at all, so 
it is wrong to have pytest specified. The correct way here is to define 
do-test to execute test.py.

-- 
Charlie Li
...nope, still don't have an exit line.
OpenPGP_signature.asc (application/pgp-signature, 236 B)
-----BEGIN PGP SIGNATURE-----

wnsEABYIACMWIQTHxcCLnAXo3rFg6k7P+1cn7slqBAUCaLn4rQUDAAAAAAAKCRDP+1cn7slqBHC/
AP9Ugl4WrLO1ar0DkNiAAhPnLLwujnq3jIHGAWMgYOzyBgD8DK3ifHzFtx6+gZjEt4Fc680PyCcP
MlJkxnHqVusasAA=
=fib0
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.