]> xenbits.xensource.com Git - libvirt.git/commitdiff
viridentitytest: Run more frequently
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 6 Nov 2020 08:58:33 +0000 (09:58 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 9 Nov 2020 14:43:53 +0000 (15:43 +0100)
The viridentitytest tests our viridentity module which is
compiled on all platforms and OSes. There is no need to have
SELinux secdriver as individual test cases are skipped if SELinux
is missing.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
tests/meson.build
tests/viridentitytest.c

index 7e7427bb15248ecf724a48e33fc749f59fd2f871..f88410ff33a18c466ae88697afe64199f470c3d1 100644 (file)
@@ -313,6 +313,7 @@ tests += [
   { 'name': 'virfirewalltest' },
   { 'name': 'virhostcputest', 'link_whole': [ test_file_wrapper_lib ] },
   { 'name': 'virhostdevtest' },
+  { 'name': 'viridentitytest' },
   { 'name': 'viriscsitest' },
   { 'name': 'virkeycodetest' },
   { 'name': 'virkmodtest' },
@@ -483,7 +484,6 @@ if conf.has('WITH_SECDRIVER_SELINUX')
   if conf.has('WITH_LIBATTR')
     tests += [
       { 'name': 'securityselinuxtest' },
-      { 'name': 'viridentitytest' },
     ]
 
     if conf.has('WITH_QEMU')
index fd01eeaa80b3e424e06e50b391a6fb107ff7c22a..afb9fdaec4b60153d64c5c300c4b5e99b0328243 100644 (file)
@@ -88,8 +88,7 @@ static int testIdentityGetSystem(const void *data)
 #if !WITH_SELINUX
     if (context) {
         VIR_DEBUG("libvirt not compiled with SELinux, skipping this test");
-        ret = EXIT_AM_SKIP;
-        return -1;
+        return EXIT_AM_SKIP;
     }
 #endif