Browse Source

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>
main
Marc-André Lureau 4 years ago committed by David Gibson
parent
commit
f8b4609882
  1. 12
      tests/meson.build

12
tests/meson.build

@ -108,14 +108,14 @@ endforeach @@ -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'

Loading…
Cancel
Save