tests: don't skip python version tests if python is found but its dep is broken

If a version of python is installed for testing against, we should
assume it's actually important to test against it.
pull/10137/head
Eli Schwartz 3 years ago
parent 4b0c0810df
commit fe2c0ff1e2
No known key found for this signature in database
GPG Key ID: CEB167EFB5722BD6
  1. 16
      test cases/python/8 different python versions/meson.build

@ -6,18 +6,14 @@ py_mod = import('python')
py = py_mod.find_installation(get_option('python'), required : false)
if py.found()
py_dep = py.dependency(required : false)
py_dep = py.dependency()
if py_dep.found()
subdir('ext')
subdir('ext')
test('extmod',
py,
args : files('blaster.py'),
env : ['PYTHONPATH=' + pypathdir])
else
error('MESON_SKIP_TEST: Python libraries not found, skipping test.')
endif
test('extmod',
py,
args : files('blaster.py'),
env : ['PYTHONPATH=' + pypathdir])
else
error('MESON_SKIP_TEST: Python not found, skipping test.')
endif

Loading…
Cancel
Save