]> xenbits.xensource.com Git - libvirt.git/commitdiff
test: conditionalize 'virsh-auth' on test driver
authorDaniel P. Berrangé <berrange@redhat.com>
Tue, 7 May 2024 13:05:12 +0000 (14:05 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Wed, 8 May 2024 15:01:34 +0000 (16:01 +0100)
The 'virsh-auth' test is mistakenly conditionalized on the libvirtd
daemon build, however, it just uses the 'test:///default' driver
URI, so does not require a daemon.

Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
tests/meson.build

index 6869ed28de3177a676f9a042a19285835d1a00fa..eda907553572332d20dfce9b20ae79de422e768b 100644 (file)
@@ -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