Merge branch 'wip/bobby285271/test-env-prepend' into 'master'

meson: Use env.prepend() for test environment setup

See merge request GNOME/libsecret!141
This commit is contained in:
Niels De Graef 2024-03-10 21:07:24 +00:00
commit 167761ffa7

View File

@ -257,8 +257,8 @@ if get_option('introspection')
# env to be used in tests that use the typelib, # env to be used in tests that use the typelib,
# to make sure they find the one for MockService # to make sure they find the one for MockService
test_typelib_env = environment() test_typelib_env = environment()
test_typelib_env.set('GI_TYPELIB_PATH', meson.current_build_dir()) test_typelib_env.prepend('GI_TYPELIB_PATH', meson.current_build_dir())
test_typelib_env.set('LD_LIBRARY_PATH', meson.current_build_dir()) test_typelib_env.prepend('LD_LIBRARY_PATH', meson.current_build_dir())
# Python Tests # Python Tests
pytest_names = [ pytest_names = [