ci: Use dbus-run-session for tests
This set up a D-Bus session together with env variables such as `$XDG_RUNTIME_DIR`.
This commit is contained in:
parent
b79bbad8ae
commit
31a18ce6dd
1 changed files with 2 additions and 2 deletions
|
|
@ -18,7 +18,7 @@ variables:
|
||||||
BUILD_DIR: build
|
BUILD_DIR: build
|
||||||
CONFIG_CMD: meson --buildtype=debug $BUILD_DIR
|
CONFIG_CMD: meson --buildtype=debug $BUILD_DIR
|
||||||
BUILD_CMD: ninja -v -C $BUILD_DIR
|
BUILD_CMD: ninja -v -C $BUILD_DIR
|
||||||
TEST_CMD: xvfb-run meson test -v --no-stdsplit -C $BUILD_DIR $TEST_ARGS
|
TEST_CMD: xvfb-run -a dbus-run-session -- meson test -v --no-stdsplit -C $BUILD_DIR $TEST_ARGS
|
||||||
INSTALL_CMD: ninja -v -C $BUILD_DIR install
|
INSTALL_CMD: ninja -v -C $BUILD_DIR install
|
||||||
|
|
||||||
# Fedora packages
|
# Fedora packages
|
||||||
|
|
@ -30,7 +30,7 @@ variables:
|
||||||
libpeas1-devel libsecret-devel libstemmer-devel libunwind-devel
|
libpeas1-devel libsecret-devel libstemmer-devel libunwind-devel
|
||||||
libxml2-devel libytnef-devel sqlite-devel webkitgtk4-devel
|
libxml2-devel libytnef-devel sqlite-devel webkitgtk4-devel
|
||||||
git
|
git
|
||||||
FEDORA_TEST_DEPS: glibc-langpack-en gnutls-utils tar Xvfb xz
|
FEDORA_TEST_DEPS: dbus-daemon glibc-langpack-en gnutls-utils tar Xvfb xz
|
||||||
|
|
||||||
# Ubuntu packages
|
# Ubuntu packages
|
||||||
UBUNTU_DEPS:
|
UBUNTU_DEPS:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue