mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-23 11:17:21 -08:00
1ded69a8ae9c41da9bf7da03b65fdb2ec38a9376
Replace pytest-expect with pure bash in order to use the preferred skipping-tests-based-on-paths-names recipe via epytest --deselect arguments, and also add the missing epytest die call reported by David Seifert. The included pytest-expect-to-deselect function can perhaps be migrated to an eclass somewhere: # @FUNCTION: pytest-expect-to-deselect # @USAGE: readarray -t pytest_args < <(pytest-expect-to-deselect <<<PYTEST_EXPECT_CONTENT) # @DESCRIPTION: # Read a pytest-expect pytest --xfail-file file from stdin and write # equivalent pytest --deselect arguments to stdout for consumption by # readarray -t. The generated pytest --deselect arguments are appropriate # for use as described here: # https://dev.gentoo.org/~mgorny/python-guide/pytest.html#skipping-tests-based-on-paths-names pytest-expect-to-deselect() { while read -r; do [[ ${REPLY} =~ ^[u]?\'([^\']*) ]] || continue printf -- '%s\n' --deselect "${BASH_REMATCH[1]}" || return done } See: https://dev.gentoo.org/~mgorny/python-guide/pytest.html#skipping-tests-based-on-paths-names Bug: https://bugs.gentoo.org/797307 Reported-by: Michał Górny <mgorny@gentoo.org> Reported-by: David Seifert <soap@gentoo.org> Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Zac Medico <zmedico@gentoo.org>
…
…
Description
No description provided
9.8 GiB
Languages
Shell
97.9%
Roff
1.4%
Emacs Lisp
0.2%
C
0.1%