[gnome-settings-daemon] power: Create XDG_RUNTIME_DIR to fix a warning from dbus on test startup



commit 9701a4a71295ff5737e279add19b32b944b4500c
Author: Benjamin Berg <bberg redhat com>
Date:   Thu Jan 4 15:37:01 2018 +0100

    power: Create XDG_RUNTIME_DIR to fix a warning from dbus on test startup
    
    When starting the tests dbus would print a warning as the
    XDG_RUNTIME_DIR was not yet created. Simply create this directory to
    prevent the warning from being printed.
    
    dbus[2514]: Unable to set up transient service directory: XDG_RUNTIME_DIR 
"/tmp/gsd-power-testjFVT_p/runtime" not available: No such file or directory
    
    https://bugzilla.gnome.org/show_bug.cgi?id=792210

 tests/gsdtestcase.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/tests/gsdtestcase.py b/tests/gsdtestcase.py
index d7d310c..deb4992 100644
--- a/tests/gsdtestcase.py
+++ b/tests/gsdtestcase.py
@@ -70,6 +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'])
 
         klass.start_system_bus()
         klass.start_session_bus()


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]