aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--phosh-base/phosh-shell/phosh-shell-0.42.0.ebuild26
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() {