phosh-base/phosh-shell: disable xwayland for tests

Xwayland makes one of tests flaky and also pollutes /tmp/.X11-unix
without proper cleanup.  We're bettter off without it.

Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
Anna (cybertailor) Vyalkova
2024-10-25 01:00:37 +05:00
parent fdb581d87f
commit 1b94a7b1a5

View File

@@ -106,14 +106,24 @@ src_configure() {
}
src_test() {
local -x LC_ALL="C.UTF-8"
local -x WLR_RENDERER="pixman"
my_src_test() {
local -x LC_ALL="C.UTF-8"
local -x WLR_RENDERER="pixman"
local -x PHOSH_TEST_PHOC_INI="${T}/phoc.ini"
virtx meson_src_test --suite unit
if use test-full; then
# Passing "-j 1" because "phosh:integration / shell" test is flaky
virtx meson_src_test --suite integration -j 1
fi
meson_src_test --suite unit || return 1
if use test-full; then
meson_src_test --suite integration || return 1
fi
}
# Xwayland breaks "phosh:integration / shell", pollutes /tmp
cat data/phoc.ini - > "${T}"/phoc.ini <<- EOF || die
[core]
xwayland=false
EOF
virtx my_src_test
}
src_install() {