From b98239da2f18d2bfe0934ac705ef8d8b92277f74 Mon Sep 17 00:00:00 2001 From: Brandon Maier Date: Sun, 23 Jun 2024 21:20:57 -0500 Subject: [PATCH] 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 Signed-off-by: David Gibson --- tests/meson.build | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/meson.build b/tests/meson.build index 41e60f2..9cf6e3d 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -123,10 +123,13 @@ else env += [ 'PYTHON=' + py.full_path(), 'PYTHONPATH=' + meson.project_source_root() / 'pylibfdt', + 'NO_PYTHON=0', ] endif if not yaml.found() env += 'NO_YAML=1' +else + env += 'NO_YAML=0' endif run_test_types = [