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: Pass "-p no:xvfb" in epytest
Date: Mon, 05 Sep 2022 07:06:53
Message-Id: 20220905070644.455062-1-mgorny@gentoo.org
1 Signed-off-by: Michał Górny <mgorny@g.o>
2 ---
3 eclass/python-utils-r1.eclass | 5 +++++
4 1 file changed, 5 insertions(+)
5
6 GitHub PR (with package updates):
7
8
9 diff --git a/eclass/python-utils-r1.eclass b/eclass/python-utils-r1.eclass
10 index 89013591c31b..7a5f84bd561e 100644
11 --- a/eclass/python-utils-r1.eclass
12 +++ b/eclass/python-utils-r1.eclass
13 @@ -1334,6 +1334,11 @@ epytest() {
14 # pytest-sugar undoes everything that's good about pytest output
15 # and makes it hard to read logs
16 -p no:sugar
17 + # pytest-xvfb automatically spawns Xvfb for every test suite,
18 + # effectively forcing it even when we'd prefer the tests
19 + # not to have DISPLAY at all, causing crashes sometimes
20 + # and causing us to miss missing virtualx usage
21 + -p no:xvfb
22 )
23 local x
24 for x in "${EPYTEST_DESELECT[@]}"; do
25 --
26 2.37.3