diff options
author | Benjamin Berg <bberg@redhat.com> | 2018-04-10 18:19:05 +0200 |
---|---|---|
committer | Benjamin Berg <bberg@redhat.com> | 2018-04-10 23:22:01 +0200 |
commit | c5665d3e6547e21d57564abbbfcb01705e0a7744 (patch) | |
tree | 0094373e798d0f10bd9d0481d00213fec0e9a119 /tests | |
parent | ed1683470f532193726d11775b7d5b3f02e1991f (diff) | |
download | gnome-settings-daemon-c5665d3e6547e21d57564abbbfcb01705e0a7744.tar.gz |
data: Compile gschema files at build time and copy into tests
Without this we need to install the GSchema files for testing purposes.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/gsdtestcase.py | 5 |
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) |