D-Bus testing: fix auto start test when using jhbuild

The test must not overwrite XDG_DATA_DIRS, because jhbuild sets
essential values there. Instead append.
This commit is contained in:
Patrick Ohly 2013-03-04 07:27:44 -08:00
parent f5286a09fa
commit 1995bd6184
1 changed files with 1 additions and 1 deletions

View File

@ -1439,7 +1439,7 @@ Exec=%s
# that syncevo-dbus-server. Uses a dbus-session.sh from the
# same dir as test-dbus.py itself.
env = copy.deepcopy(os.environ)
env['XDG_DATA_DIRS'] = os.path.abspath(os.path.join(xdg_root, "share"))
env['XDG_DATA_DIRS'] = env.get('XDG_DATA_DIRS', '') + ':' + os.path.abspath(os.path.join(xdg_root, "share"))
# Avoid running EDS and Akonadi. They are not needed for this test
# and can cause false failures, for example when the daemons