mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-06 00:05:54 +03:00
gnome-base/gnome-keyring: improve tests
Use the eclass function for meson tests and add missing dbus dependency Signed-off-by: Alfred Wingate <parona@protonmail.com> Part-of: https://github.com/gentoo/gentoo/pull/44472 Closes: https://github.com/gentoo/gentoo/pull/44472 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
committed by
Sam James
parent
22d7824d82
commit
b61ab02cc3
@@ -37,7 +37,10 @@ BDEPEND="
|
||||
app-text/docbook-xml-dtd:4.3
|
||||
dev-libs/libxslt
|
||||
virtual/pkgconfig
|
||||
test? ( ${PYTHON_DEPS} )
|
||||
test? (
|
||||
${PYTHON_DEPS}
|
||||
sys-apps/dbus
|
||||
)
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
@@ -72,10 +75,18 @@ src_configure() {
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# Needs dbus-run-session to not get:
|
||||
# Needs dbus to not get:
|
||||
# ERROR: test-dbus-search process failed: -6
|
||||
local dbus_params=(
|
||||
$(dbus-daemon --session --print-address --fork --print-pid)
|
||||
)
|
||||
local -x DBUS_SESSION_BUS_ADDRESS=${dbus_params[0]}
|
||||
|
||||
"${BROOT}${GLIB_COMPILE_SCHEMAS}" --allow-any-name "${S}/schema" || die
|
||||
GSETTINGS_SCHEMA_DIR="${S}/schema" virtx dbus-run-session meson test -C "${BUILD_DIR}" || die
|
||||
local -x GSETTINGS_SCHEMA_DIR="${S}/schema"
|
||||
virtx meson_src_test
|
||||
|
||||
kill "${dbus_params[1]}" || die
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
|
||||
Reference in New Issue
Block a user