diff options
author | Sam Thursfield <sam@afuera.me.uk> | 2020-03-08 22:13:13 +0100 |
---|---|---|
committer | Sam Thursfield <sam@afuera.me.uk> | 2020-03-09 00:47:15 +0100 |
commit | e3302961a2447d5b98f9f795c621f507949d5c2b (patch) | |
tree | 1a774e0710f7d357a5ea3377571e38c2292b3300 /utils/trackertestutils | |
parent | 461b42bee4dac18ba1b83502a3633795af98673e (diff) | |
download | tracker-e3302961a2447d5b98f9f795c621f507949d5c2b.tar.gz |
trackertestutils: Always start D-Bus daemon in a new session
This means that if the user presses CTRL+C, the sandbox process will
handle it and will shut down processes cleanly, but the D-Bus daemon
will not receive the CTRL+C and will keep running until the sandbox
process tells it to stop. This prevents errors during shutdown of
Tracker processes which don't expect the message bus to have
already disappeared.
Diffstat (limited to 'utils/trackertestutils')
-rw-r--r-- | utils/trackertestutils/__main__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/trackertestutils/__main__.py b/utils/trackertestutils/__main__.py index c1553797f..63c594801 100644 --- a/utils/trackertestutils/__main__.py +++ b/utils/trackertestutils/__main__.py @@ -113,7 +113,7 @@ def create_sandbox(index_location, prefix=None, verbosity=0, dbus_config=None, log.debug('Using index location "%s"' % index_location) sandbox = helpers.TrackerDBusSandbox(dbus_config, extra_env=extra_env) - sandbox.start(new_session=(interactive == True)) + sandbox.start(new_session=True) # Update our own environment, so when we launch a subprocess it has the # same settings as the Tracker daemons. |