Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Cc: "Michał Górny" <mgorny@g.o>
Subject: [gentoo-dev] [PATCH 3/3] python-utils-r1.eclass: Always force test summary in epytest
Date: Sat, 06 Mar 2021 11:02:03
Message-Id: 20210306110110.384691-3-mgorny@gentoo.org
In Reply to: [gentoo-dev] [PATCH 1/3] python-utils-r1.eclass: Introduce epytest helper by "Michał Górny"
1 Explicitly request pytest to display the summary of all test results
2 except for passing tests. This overrides the upstream defaults to
3 improve the quality of build logs.
4
5 Signed-off-by: Michał Górny <mgorny@g.o>
6 ---
7 eclass/python-utils-r1.eclass | 2 +-
8 1 file changed, 1 insertion(+), 1 deletion(-)
9
10 diff --git a/eclass/python-utils-r1.eclass b/eclass/python-utils-r1.eclass
11 index 1b2e2ccde8e5..52d064e4af80 100644
12 --- a/eclass/python-utils-r1.eclass
13 +++ b/eclass/python-utils-r1.eclass
14 @@ -1294,7 +1294,7 @@ epytest() {
15 local die_args=()
16 [[ ${EAPI} != [45] ]] && die_args+=( -n )
17
18 - set -- "${EPYTHON}" -m pytest -vv "${@}"
19 + set -- "${EPYTHON}" -m pytest -vv -ra "${@}"
20
21 echo "${@}" >&2
22 "${@}" || die "${die_args[@]}" "pytest failed with ${EPYTHON}"
23 --
24 2.30.1