1 |
commit: cb6dd762048b1f98cc59207070ee65e68be8832f |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Sep 4 08:36:58 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Sep 7 07:50:10 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cb6dd762 |
7 |
|
8 |
python-utils-r1.eclass: Pass "-p no:xvfb" in epytest |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
eclass/python-utils-r1.eclass | 5 +++++ |
13 |
1 file changed, 5 insertions(+) |
14 |
|
15 |
diff --git a/eclass/python-utils-r1.eclass b/eclass/python-utils-r1.eclass |
16 |
index 89013591c31b..7a5f84bd561e 100644 |
17 |
--- a/eclass/python-utils-r1.eclass |
18 |
+++ b/eclass/python-utils-r1.eclass |
19 |
@@ -1334,6 +1334,11 @@ epytest() { |
20 |
# pytest-sugar undoes everything that's good about pytest output |
21 |
# and makes it hard to read logs |
22 |
-p no:sugar |
23 |
+ # pytest-xvfb automatically spawns Xvfb for every test suite, |
24 |
+ # effectively forcing it even when we'd prefer the tests |
25 |
+ # not to have DISPLAY at all, causing crashes sometimes |
26 |
+ # and causing us to miss missing virtualx usage |
27 |
+ -p no:xvfb |
28 |
) |
29 |
local x |
30 |
for x in "${EPYTEST_DESELECT[@]}"; do |