1 |
commit: 1d718c475ca4e5dd6202bd79470a09caf269fc78 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon May 9 09:44:45 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon May 9 20:31:54 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1d718c47 |
7 |
|
8 |
python-utils-r1.eclass: Switch epytest to "count" progress reports |
9 |
|
10 |
Switch epytest to report test counts rather than percentages. This is |
11 |
more precise when we're dealing with large numbers of tests. |
12 |
|
13 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
14 |
|
15 |
eclass/python-utils-r1.eclass | 3 +++ |
16 |
1 file changed, 3 insertions(+) |
17 |
|
18 |
diff --git a/eclass/python-utils-r1.eclass b/eclass/python-utils-r1.eclass |
19 |
index 7f8f986cb287..0d958828e163 100644 |
20 |
--- a/eclass/python-utils-r1.eclass |
21 |
+++ b/eclass/python-utils-r1.eclass |
22 |
@@ -1288,6 +1288,9 @@ epytest() { |
23 |
-Wdefault |
24 |
# override color output |
25 |
"--color=${color}" |
26 |
+ # count is more precise when we're dealing with a large number |
27 |
+ # of tests |
28 |
+ -o console_output_style=count |
29 |
# disable the undesirable-dependency plugins by default to |
30 |
# trigger missing argument strips. strip options that require |
31 |
# them from config files. enable them explicitly via "-p ..." |