File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -368,7 +368,7 @@ init_dbus_mock() {
368
368
require_python_module " dbusmock" || return 255
369
369
require " gdbus" || return 255
370
370
printf " %s\n" " Initializing D-Bus mock from template: $1 .py"
371
- python3 -m dbusmock --template " ${srcdir} /$1 .py" & disown
371
+ python3 -m dbusmock --template " ${srcdir} /$1 .py" &
372
372
# We have to replace system bus address because mock D-Bus
373
373
# endpoint is created inside the user session
374
374
export DBUS_SYSTEM_BUS_ADDRESS=$DBUS_SESSION_BUS_ADDRESS
@@ -380,6 +380,7 @@ clean_dbus_mock() {
380
380
require " gdbus" || return 255
381
381
printf " %s\n" " Shutting down D-Bus mock: $1 "
382
382
gdbus call --session -d " $1 " -o / -m " $1 .Exit" > /dev/null 2>&1 || true
383
+ export DBUS_SYSTEM_BUS_ADDRESS=
383
384
}
384
385
385
386
export -f assert_exists
You can’t perform that action at this time.
0 commit comments