aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2020-12-07 17:00:52 +0400
committerDavid Gibson <david@gibson.dropbear.id.au>2020-12-08 15:30:28 +1100
commitf8b46098824d846675103d9b1ce0a3f7b4548623 (patch)
tree7359eb327bd89ab931b3a82f283a6b56a42280a9
parent30a56bce4f0bdf59ca52af244d4da5250924bfdd (diff)
downloaddtc-f8b46098824d846675103d9b1ce0a3f7b4548623.tar.gz
meson: do not assume python is installed, skip tests
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <20201207130055.462734-3-marcandre.lureau@redhat.com> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
-rw-r--r--tests/meson.build12
1 files 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'