We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4397404 commit f4787f9Copy full SHA for f4787f9
tests/run.sh
@@ -1,17 +1,9 @@
1
#!/bin/sh
2
set -e
3
4
-ADDRESS_FILE=$(mktemp /tmp/pydbustest.XXXXXXXXX)
5
-PID_FILE=$(mktemp /tmp/pydbustest.XXXXXXXXX)
+eval `dbus-launch --sh-syntax`
6
7
-dbus-daemon --session --print-address=0 --print-pid=1 --fork 0>"$ADDRESS_FILE" 1>"$PID_FILE"
8
-
9
-export DBUS_SESSION_BUS_ADDRESS=$(cat "$ADDRESS_FILE")
10
-PID=$(cat "$PID_FILE")
11
12
-trap 'kill -TERM $PID' EXIT
13
14
-rm "$ADDRESS_FILE" "$PID_FILE"
+trap 'kill -TERM $DBUS_SESSION_BUS_PID' EXIT
15
16
PYTHON=${1:-python}
17
0 commit comments