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] python-utils-r1.eclass: Switch epytest to "count" progress reports
Date: Mon, 09 May 2022 09:45:43
Message-Id: 20220509094531.726898-1-mgorny@gentoo.org
1 Switch epytest to report test counts rather than percentages. This is
2 more precise when we're dealing with large numbers of tests.
3
4 Signed-off-by: Michał Górny <mgorny@g.o>
5 ---
6 eclass/python-utils-r1.eclass | 3 +++
7 1 file changed, 3 insertions(+)
8
9 diff --git a/eclass/python-utils-r1.eclass b/eclass/python-utils-r1.eclass
10 index 2b22b0539ecb..d7971d9ce422 100644
11 --- a/eclass/python-utils-r1.eclass
12 +++ b/eclass/python-utils-r1.eclass
13 @@ -1288,6 +1288,9 @@ epytest() {
14 -Wdefault
15 # override color output
16 "--color=${color}"
17 + # count is more precise when we're dealing with a large number
18 + # of tests
19 + -o console_output_style=count
20 # disable the undesirable-dependency plugins by default to
21 # trigger missing argument strips. strip options that require
22 # them from config files. enable them explicitly via "-p ..."
23 --
24 2.35.1