diff options
author | Bastien Nocera <hadess@hadess.net> | 2018-01-19 16:23:37 +0100 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2018-02-02 16:28:00 +0100 |
commit | b1bf0aad346471758e2542793e23ae25e9d31c2e (patch) | |
tree | 83f9567165da9ed4b827bdd77733035b50ffaf32 /tests | |
parent | 2159c1ca55a35295e530bf66ceca41b0c7c6c1a2 (diff) | |
download | gnome-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.py | 2 |
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() |