tests: don't run mdevctl test if lacking YAJL

The mdev code requires YAJL in order to convert from node dev XML to
mdev's config format.

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 14:35:04 +01:00
parent 7817c3f89c
commit 479333af2c
1 changed files with 1 additions and 1 deletions

View File

@ -402,7 +402,7 @@ if conf.has('WITH_NETWORK')
]
endif
if conf.has('WITH_NODE_DEVICES')
if conf.has('WITH_NODE_DEVICES') and conf.has('WITH_YAJL')
tests += [
{ 'name': 'nodedevmdevctltest', 'link_with': [ node_device_driver_impl ] },
]