summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBenjamin Berg <bberg@redhat.com>2018-01-04 15:37:01 +0100
committerBenjamin Berg <bberg@redhat.com>2018-01-15 15:00:22 +0100
commit9701a4a71295ff5737e279add19b32b944b4500c (patch)
tree49ee3fbf4b2e848b7ebd9fc5af1b9ea75cfda9bf /tests
parent9725d89d8f5aa796eb8573e8dfb54f1a6459a988 (diff)
downloadgnome-settings-daemon-9701a4a71295ff5737e279add19b32b944b4500c.tar.gz
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
Diffstat (limited to 'tests')
-rw-r--r--tests/gsdtestcase.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/gsdtestcase.py b/tests/gsdtestcase.py
index d7d310c3..deb49929 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()