Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 905863 - python-utils-r1: epytest() add a variable to support USER flags
Summary: python-utils-r1: epytest() add a variable to support USER flags
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal enhancement
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2023-05-07 09:01 UTC by Agostino Sarubbo
Modified: 2024-05-20 17:02 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2023-05-07 09:01:51 UTC
based on https://bugs.gentoo.org/905840#c2 it looks like we can make it easier.

Also, the description of epytest is wrong:

# Run pytest, passing the standard set of pytest options, then
# --deselect and --ignore options based on EPYTEST_DESELECT
# and EPYTEST_IGNORE, then user-specified options.

because user-specified aren't really user-specified but for who writes the ebuild.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-05-07 09:04:37 UTC
Yeah, we should:
1. Have some EXTRA_EPYTEST_ARGS or similar env variable
2. s/user-specified/caller-specified/ (or s/user-specified/ebuild-specified/)
Comment 2 Larry the Git Cow gentoo-dev 2024-05-20 17:02:36 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=be50ed0537e06560614cedc379c60292300a7e3e

commit be50ed0537e06560614cedc379c60292300a7e3e
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2024-05-14 12:48:38 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2024-05-20 16:56:44 +0000

    python-utils-r1.eclass: Support passing EPYTEST_FLAGS
    
    Closes: https://bugs.gentoo.org/905863
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 eclass/python-utils-r1.eclass | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)