tests: always spawn private d-bus
authorLubomir Rintel <lkundrak@v3.sk>
Thu, 14 May 2015 12:39:23 +0000 (14:39 +0200)
committerLubomir Rintel <lkundrak@v3.sk>
Tue, 26 May 2015 11:51:44 +0000 (13:51 +0200)
Parallel test runs would not be possible without this.

libnm-glib/tests/libnm-glib-test-launch.sh
libnm/tests/libnm-test-launch.sh
tools/run-test-valgrind.sh

index 42d9fbe..980f834 100755 (executable)
@@ -1,9 +1,7 @@
 #!/bin/sh
 
-# Spawn DBus if there's none
-if [ -z "$DBUS_SESSION_BUS_ADDRESS" ]; then
-    eval `dbus-launch --sh-syntax`
-    trap "kill $DBUS_SESSION_BUS_PID" EXIT
-fi
+# Spawn DBus
+eval `dbus-launch --sh-syntax`
+trap "kill $DBUS_SESSION_BUS_PID" EXIT
 
 "$@"
index 42d9fbe..980f834 100755 (executable)
@@ -1,9 +1,7 @@
 #!/bin/sh
 
-# Spawn DBus if there's none
-if [ -z "$DBUS_SESSION_BUS_ADDRESS" ]; then
-    eval `dbus-launch --sh-syntax`
-    trap "kill $DBUS_SESSION_BUS_PID" EXIT
-fi
+# Spawn DBus
+eval `dbus-launch --sh-syntax`
+trap "kill $DBUS_SESSION_BUS_PID" EXIT
 
 "$@"
index 200a27d..f9f9646 100755 (executable)
@@ -4,11 +4,9 @@ LIBTOOL="$1"; shift
 VALGRIND="$1"; shift
 SUPPRESSIONS="$1"; shift
 if [ "$1" = "--launch-dbus" ]; then
-    # Spawn DBus if there's none
-    if [ -z "$DBUS_SESSION_BUS_ADDRESS" ]; then
-        eval `dbus-launch --sh-syntax`
-        trap "kill $DBUS_SESSION_BUS_PID" EXIT
-    fi
+    # Spawn DBus
+    eval `dbus-launch --sh-syntax`
+    trap "kill $DBUS_SESSION_BUS_PID" EXIT
     shift
 fi
 TEST="$1"; shift