summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2022-09-04 10:36:58 +0200
committerMichał Górny <mgorny@gentoo.org>2022-09-07 09:50:10 +0200
commitcb6dd762048b1f98cc59207070ee65e68be8832f (patch)
tree83d4fda26369fad992ede5a04141a4264115bd31 /eclass/python-utils-r1.eclass
parentwww-client/qutebrowser: Enable pytest-xvfb explicitly (diff)
downloadgentoo-cb6dd762048b1f98cc59207070ee65e68be8832f.tar.gz
gentoo-cb6dd762048b1f98cc59207070ee65e68be8832f.tar.bz2
gentoo-cb6dd762048b1f98cc59207070ee65e68be8832f.zip
python-utils-r1.eclass: Pass "-p no:xvfb" in epytest
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'eclass/python-utils-r1.eclass')
-rw-r--r--eclass/python-utils-r1.eclass5
1 files changed, 5 insertions, 0 deletions
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