meson: Do not hard-require test dependencies

Just warn about missing test dependencies. If the user tries to run the
tests, they will fail. This is fine however, and in certain cases the
user might not even want to run the tests.

Closes: #133
This commit is contained in:
Benjamin Berg 2022-05-05 15:54:24 +02:00
parent ae04fa9897
commit ff0aa64e2d

View file

@ -153,7 +153,7 @@ python3_available_modules = []
foreach module, required : python3_test_modules
if required and run_command(python3, '-c', 'import @0@'.format(module)).returncode() != 0
error('Python3 module \'' + module + '\' required by test suite not found')
warning('Python3 module \'' + module + '\' required by test suite not found')
endif
endforeach