]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
tests: Fix storagepoolxml2xmltest execution for XML namespaces
authorJohn Ferlan <jferlan@redhat.com>
Wed, 30 Jan 2019 15:26:48 +0000 (10:26 -0500)
committerJohn Ferlan <jferlan@redhat.com>
Thu, 31 Jan 2019 13:31:17 +0000 (08:31 -0500)
Only run the pool-netfs-ns-mountopts if built WITH_STORAGE_FS and only
run pool-rbd-ns-configopts if built with WITH_STORAGE_RBD since the
namespace support is only enabled if the pool is enabled.

Signed-off-by: John Ferlan <jferlan@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
tests/storagepoolxml2xmltest.c

index 90d00a8d9e490f845cf9949fa8a9b248120c2a30..acb15f3a2c1efbd733664f7d324df612adcbe28a 100644 (file)
@@ -91,7 +91,9 @@ mymain(void)
     DO_TEST("pool-netfs-protocol-ver");
     DO_TEST("pool-netfs-gluster");
     DO_TEST("pool-netfs-cifs");
+#ifdef WITH_STORAGE_FS
     DO_TEST("pool-netfs-ns-mountopts");
+#endif
     DO_TEST("pool-scsi");
     DO_TEST("pool-scsi-type-scsi-host");
     DO_TEST("pool-scsi-type-fc-host");
@@ -106,7 +108,9 @@ mymain(void)
     DO_TEST("pool-zfs");
     DO_TEST("pool-zfs-sourcedev");
     DO_TEST("pool-rbd");
+#ifdef WITH_STORAGE_RBD
     DO_TEST("pool-rbd-ns-configopts");
+#endif
     DO_TEST("pool-vstorage");
     DO_TEST("pool-iscsi-direct-auth");
     DO_TEST("pool-iscsi-direct");