diff options
author | Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in> | 2024-10-25 01:00:37 +0500 |
---|---|---|
committer | Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in> | 2024-10-25 01:07:03 +0500 |
commit | 1b94a7b1a5444a83a291ced1ca65a70380f656cd (patch) | |
tree | b103b222983c67918d6bf58442956e2a7ad94d40 /phosh-base | |
parent | net-mail/dovecot-fts-flatcurve-1.0.5: fix dep & CFLAGS (diff) | |
download | guru-1b94a7b1a5444a83a291ced1ca65a70380f656cd.tar.gz guru-1b94a7b1a5444a83a291ced1ca65a70380f656cd.tar.bz2 guru-1b94a7b1a5444a83a291ced1ca65a70380f656cd.zip |
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>
Diffstat (limited to 'phosh-base')
-rw-r--r-- | phosh-base/phosh-shell/phosh-shell-0.42.0.ebuild | 26 |
1 files changed, 18 insertions, 8 deletions
diff --git a/phosh-base/phosh-shell/phosh-shell-0.42.0.ebuild b/phosh-base/phosh-shell/phosh-shell-0.42.0.ebuild index 806533951..257395f00 100644 --- a/phosh-base/phosh-shell/phosh-shell-0.42.0.ebuild +++ b/phosh-base/phosh-shell/phosh-shell-0.42.0.ebuild @@ -106,14 +106,24 @@ src_configure() { } src_test() { - local -x LC_ALL="C.UTF-8" - local -x WLR_RENDERER="pixman" - - 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 + my_src_test() { + local -x LC_ALL="C.UTF-8" + local -x WLR_RENDERER="pixman" + local -x PHOSH_TEST_PHOC_INI="${T}/phoc.ini" + + 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() { |