From 8d8372b13706514fada1415cb4b29a0ab0235d07 Mon Sep 17 00:00:00 2001 From: Brandon Maier Date: Tue, 1 Aug 2023 21:54:30 +0000 Subject: [PATCH] tests: fix use of deprecated meson methods Fixes the following warnings > tests/meson.build:123: WARNING: Project targets '>=0.56.0' but uses feature deprecated since '0.55.0': ExternalProgram.path. use ExternalProgram.full_path() instead > tests/meson.build:124: WARNING: Project targets '>=0.56.0' but uses feature deprecated since '0.56.0': meson.source_root. use meson.project_source_root() or meson.global_source_root() instead. Signed-off-by: Brandon Maier Signed-off-by: David Gibson --- tests/meson.build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/meson.build b/tests/meson.build index 29a42dd..fe10fa2 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -120,8 +120,8 @@ if not py.found() env += 'NO_PYTHON=1' else env += [ - 'PYTHON=' + py.path(), - 'PYTHONPATH=' + meson.source_root() / 'pylibfdt', + 'PYTHON=' + py.full_path(), + 'PYTHONPATH=' + meson.project_source_root() / 'pylibfdt', ] endif if not yaml.found()