From: Marc-André Lureau <marcandre.lureau@xxxxxxxxxx> Signed-off-by: Marc-André Lureau <marcandre.lureau@xxxxxxxxxx> --- tests/meson.build | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/meson.build b/tests/meson.build index 8976dc1..9d3a4e7 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -108,14 +108,14 @@ endforeach run_tests = find_program('run_tests.sh') - -env = [ - 'PYTHON=' + py.path(), - 'PYTHONPATH=' + meson.source_root() / 'pylibfdt', -] - +env = [] if not py.found() env += 'NO_PYTHON=1' +else + env += [ + 'PYTHON=' + py.path(), + 'PYTHONPATH=' + meson.source_root() / 'pylibfdt', + ] endif if not yaml.found() env += 'NO_YAML=1' -- 2.29.0