Commit 22062d42 authored by Sam Thursfield's avatar Sam Thursfield

functional-tests: Fix use of meson.build_root()

We must avoid using meson.build_root() because the value changes if we
are embedded as a subproject in another project.

I discovered this issue while testing
<!74> where it
caused GSettings schemas not to be found when Tracker wasn't installed
into /usr . It didn't cause any problems before, because the test was
able to fall back on the GSettings schemas from /usr.
parent 17777040
Pipeline #78839 passed with stage
in 2 minutes and 4 seconds
......@@ -37,7 +37,7 @@ dconf_profile_full_path = join_paths(meson.current_source_dir(), 'trackertest')
test_env = environment()
test_env.set('DCONF_PROFILE', dconf_profile_full_path)
test_env.set('GSETTINGS_SCHEMA_DIR', join_paths(meson.build_root(), 'data'))
test_env.set('GSETTINGS_SCHEMA_DIR', join_paths(build_root, 'data'))
test_env.set('TRACKER_DB_ONTOLOGIES_DIR', tracker_uninstalled_nepomuk_ontologies_dir)
test_env.set('TRACKER_FUNCTIONAL_TEST_BUILD_DIR', build_root)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment