[gnome-settings-daemon] tests: Fix dbus warning in tests
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] tests: Fix dbus warning in tests
- Date: Sat, 3 Feb 2018 00:00:26 +0000 (UTC)
commit b1bf0aad346471758e2542793e23ae25e9d31c2e
Author: Bastien Nocera <hadess hadess net>
Date: Fri Jan 19 16:23:37 2018 +0100
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)
tests/gsdtestcase.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/tests/gsdtestcase.py b/tests/gsdtestcase.py
index deb4992..c5ba2d0 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()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]