Zac Medico 1ded69a8ae dev-python/agate: Replace pytest-expect with pure bash
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>
2021-06-21 14:19:20 -07:00
2021-06-17 06:03:19 +01:00
2021-06-16 06:41:05 +02:00
2021-06-18 06:14:43 +02:00
2021-06-21 15:04:45 +01:00
2021-06-20 09:38:55 +03:00
2021-06-10 19:36:19 +02:00
2021-06-21 10:47:52 +02:00
2021-06-18 16:20:04 +02:00
2021-06-21 07:26:52 +02:00
2021-06-08 03:51:57 +00:00
2021-05-31 22:40:57 +02:00
2021-06-21 21:49:10 +02:00
2021-06-15 17:33:57 -07:00
2021-06-14 18:55:16 -04:00
2021-06-03 23:20:32 +02:00
2021-06-20 21:53:43 +01:00
2021-06-20 19:43:38 +01:00
2021-06-18 01:20:08 +02:00
2021-06-21 19:18:25 +02:00
2021-06-14 11:19:05 +02:00
2021-06-18 18:36:53 +02:00
2021-06-14 22:11:13 +00:00
2021-06-21 21:11:42 +02:00
2021-06-17 17:35:09 -05:00
2021-06-20 17:16:27 +02:00
S
Description
No description provided
9.8 GiB
Languages
Shell 97.9%
Roff 1.4%
Emacs Lisp 0.2%
C 0.1%