Browse Source

tests/meson.build: fix python and yaml tests not running

The run-tests.sh script attempts to detect if Python and Yaml support is
enabled in the build. This has caused false-negatives where it fails to
find the Python library even though it was compiled into the build.

Avoid this problem altogether and always set the NO_PYTHON and NO_YAML
to match if the features are enabled in Meson.

Signed-off-by: Brandon Maier <brandon.maier@gmail.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
main
Brandon Maier 5 months ago committed by David Gibson
parent
commit
b98239da2f
  1. 3
      tests/meson.build

3
tests/meson.build

@ -123,10 +123,13 @@ else
env += [ env += [
'PYTHON=' + py.full_path(), 'PYTHON=' + py.full_path(),
'PYTHONPATH=' + meson.project_source_root() / 'pylibfdt', 'PYTHONPATH=' + meson.project_source_root() / 'pylibfdt',
'NO_PYTHON=0',
] ]
endif endif
if not yaml.found() if not yaml.found()
env += 'NO_YAML=1' env += 'NO_YAML=1'
else
env += 'NO_YAML=0'
endif endif


run_test_types = [ run_test_types = [

Loading…
Cancel
Save