test: fix the LD_LIBRARY_PATH to liboeffis

Make this dependent on liboeffis directly instead of hardcoding where it
should be.
This commit is contained in:
Peter Hutterer 2023-03-07 11:54:10 +10:00
parent a2e60be0e6
commit 367fa6384f
2 changed files with 2 additions and 1 deletions

View file

@ -5,6 +5,7 @@ project('libei', 'c',
meson_version: '>= 0.57.0')
pkgconfig = import('pkgconfig')
fs = import('fs')
cc = meson.get_compiler('c')
cflags =[

View file

@ -51,7 +51,7 @@ if build_oeffis
dependencies: deps_liboeffis + [dep_unittest]))
env = environment()
env.set('LD_LIBRARY_PATH', meson.project_build_root())
env.set('LD_LIBRARY_PATH', fs.parent(lib_liboeffis.full_path()))
pymod = import('python')
pymod.find_installation('python3', modules: ['pytest', 'attr', 'dbusmock'])
pytest = find_program('pytest-3', 'pytest')