summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2018-01-19 16:23:37 +0100
committerBastien Nocera <hadess@hadess.net>2018-02-02 16:28:00 +0100
commitb1bf0aad346471758e2542793e23ae25e9d31c2e (patch)
tree83f9567165da9ed4b827bdd77733035b50ffaf32 /tests
parent2159c1ca55a35295e530bf66ceca41b0c7c6c1a2 (diff)
downloadgnome-settings-daemon-b1bf0aad346471758e2542793e23ae25e9d31c2e.tar.gz
tests: Fix dbus warning in tests
Set a more restrictive mode than the default to avoid a warning at runtime: dbus[28036]: Unable to set up transient service directory: XDG_RUNTIME_DIR "/tmp/gsd-power-testF7oXJo/runtime" can be written by others (mode 040775)
Diffstat (limited to 'tests')
-rw-r--r--tests/gsdtestcase.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/gsdtestcase.py b/tests/gsdtestcase.py
index deb49929..c5ba2d08 100644
--- a/tests/gsdtestcase.py
+++ b/tests/gsdtestcase.py
@@ -70,7 +70,7 @@ class GSDTestCase(dbusmock.DBusTestCase):
# work around https://bugzilla.gnome.org/show_bug.cgi?id=689136
os.makedirs(os.path.join(os.environ['XDG_CONFIG_HOME'], 'dconf'))
- os.makedirs(os.environ['XDG_RUNTIME_DIR'])
+ os.makedirs(os.environ['XDG_RUNTIME_DIR'], mode=0o700)
klass.start_system_bus()
klass.start_session_bus()