summaryrefslogtreecommitdiff
path: root/libnm/tests
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2016-01-21 23:11:29 +0100
committerThomas Haller <thaller@redhat.com>2016-01-22 16:52:41 +0100
commita9bd5dce1cb0471c408b83814479051789beeff2 (patch)
tree1f1de655fbd3c53fb3fc3099c743fa61b60e70f3 /libnm/tests
parent08bc51095c5a1292e1f7bd7eaed954febcb0a162 (diff)
downloadNetworkManager-a9bd5dce1cb0471c408b83814479051789beeff2.tar.gz
tests: use dbus-run-session instead of dbus-launch
The dbus-run-session utility was designed to run a process within a D-Bus session, specifically for running regressions tests and is much better suited then dbus-launch. As an additional benefit, this avoids any X dependencies. https://mail.gnome.org/archives/networkmanager-list/2016-January/msg00023.html
Diffstat (limited to 'libnm/tests')
-rwxr-xr-xlibnm/tests/libnm-test-launch.sh6
1 files changed, 1 insertions, 5 deletions
diff --git a/libnm/tests/libnm-test-launch.sh b/libnm/tests/libnm-test-launch.sh
index 980f8345e9..1064e41223 100755
--- a/libnm/tests/libnm-test-launch.sh
+++ b/libnm/tests/libnm-test-launch.sh
@@ -1,7 +1,3 @@
#!/bin/sh
-# Spawn DBus
-eval `dbus-launch --sh-syntax`
-trap "kill $DBUS_SESSION_BUS_PID" EXIT
-
-"$@"
+dbus-run-session -- "$@"