summaryrefslogtreecommitdiff
path: root/tests/gsdtestcase.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/gsdtestcase.py')
-rw-r--r--tests/gsdtestcase.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/gsdtestcase.py b/tests/gsdtestcase.py
index a3515c07..20bab9e0 100644
--- a/tests/gsdtestcase.py
+++ b/tests/gsdtestcase.py
@@ -69,6 +69,11 @@ class GSDTestCase(X11SessionTestCase):
os.environ['XDG_DATA_HOME'] = os.path.join(klass.workdir, 'data')
os.environ['XDG_RUNTIME_DIR'] = os.path.join(klass.workdir, 'runtime')
+ # Copy gschema file into XDG_DATA_HOME
+ gschema_dir = os.path.join(os.environ['XDG_DATA_HOME'], 'glib-2.0', 'schemas')
+ os.makedirs(gschema_dir)
+ shutil.copy(os.path.join(top_builddir, 'data', 'gschemas.compiled'), gschema_dir)
+
# 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'], mode=0o700)