diff --git a/tests/meson.build b/tests/meson.build index 6869ed28de..eda9075535 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -711,6 +711,12 @@ endforeach # list of test scripts to run test_scripts = [] +if conf.has('WITH_TEST') + test_scripts += [ + { 'name': 'virsh-auth', 'depends': [ virsh_prog ] } + ] +endif + if conf.has('WITH_LIBVIRTD') test('libvirtd fail with missing config', libvirtd_prog, @@ -719,10 +725,6 @@ if conf.has('WITH_LIBVIRTD') suite: 'bin', ) - test_scripts += [ - { 'name': 'virsh-auth', 'depends': [ virsh_prog ] } - ] - if conf.has('WITH_SECDRIVER_APPARMOR') test_scripts += { 'name': 'virt-aa-helper-test' } endif