[tracker/sam/sandbox-improvements: 3/4] trackertestutils: Always start D-Bus daemon in a new session
- From: Sam Thursfield <sthursfield src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/sam/sandbox-improvements: 3/4] trackertestutils: Always start D-Bus daemon in a new session
- Date: Sun, 8 Mar 2020 23:47:48 +0000 (UTC)
commit e3302961a2447d5b98f9f795c621f507949d5c2b
Author: Sam Thursfield <sam afuera me uk>
Date: Sun Mar 8 22:13:13 2020 +0100
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.
utils/trackertestutils/__main__.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
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.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]