scripts/rpcgen: skip tests if tirpc is not present

This skips building tests which rely on tirpc when it is not
present.

Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
Daniel P. Berrangé 2024-05-07 10:38:59 +01:00
parent ae6a89884a
commit 20acd5b1be

View File

@ -1,6 +1,6 @@
subdir('rpcgen') subdir('rpcgen')
if tests_enabled[0] if tests_enabled[0] and xdr_dep.found()
subdir('tests') subdir('tests')
if pytest_prog.found() and host_machine.system() != 'darwin' if pytest_prog.found() and host_machine.system() != 'darwin'