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