Skip VirtIO-FS tests if the feature gate is disabled
@@ -427,6 +427,7 @@ var _ = SIGDescribe("Storage", func() {
var pvc = "empty-pvc1"
BeforeEach(func() {
+ checks.SkipTestIfNoFeatureGate(virtconfig.VirtIOFSGate)
tests.SkipIfNonRoot(virtClient, "VirtioFS")
tests.CreateHostPathPv(pvc, filepath.Join(tests.HostPathBase, pvc))
tests.CreateHostPathPVC(pvc, "1G")
@@ -477,6 +478,7 @@ var _ = SIGDescribe("Storage", func() {
Context("Run a VMI with VirtIO-FS and a datavolume", func() {
var dataVolume *cdiv1.DataVolume
BeforeEach(func() {
+ checks.SkipTestIfNoFeatureGate(virtconfig.VirtIOFSGate)
tests.SkipIfNonRoot(virtClient, "VirtioFS")
if !tests.HasCDI() {
Skip("Skip DataVolume tests when CDI is not present")
