diff options
Diffstat (limited to 'tests/libtest.sh')
-rw-r--r-- | tests/libtest.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/libtest.sh b/tests/libtest.sh index 246f00dd..36d39ac4 100644 --- a/tests/libtest.sh +++ b/tests/libtest.sh @@ -86,6 +86,7 @@ elif test -n "${FLATPAK_TESTS_VALGRIND_LEAKS:-}"; then else CMD_PREFIX="" fi +unset OSTREE_DEBUG_HTTP export MALLOC_CHECK_=3 export MALLOC_PERTURB_=$(($RANDOM % 255 + 1)) @@ -577,6 +578,13 @@ skip_without_ostree_version () { fi } +skip_without_libsystemd () { + ${FLATPAK} history > history-log 2>&1 || true + if grep -q 'history not available without libsystemd' history-log; then + skip "no libsystemd available" + fi +} + sed s#@testdir@#${test_builddir}# ${test_srcdir}/session.conf.in > session.conf dbus-daemon --fork --config-file=session.conf --print-address=3 --print-pid=4 \ 3> dbus-session-bus-address 4> dbus-session-bus-pid |