Skip to content

Commit 1649c9a

Browse files
Disable local fsgroup quota test when not using XFS
Full installations of an OpenShift cluster using the OpenShift- Ansible installer will not necessarily use an XFS filesystem for volumes. If this test is to remain part of the [Conformance] suite, it cannot fail when it's pre-requisite setup has not been done. Signed-off-by: Steve Kuznetsov <[email protected]>
1 parent ad8ea70 commit 1649c9a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/extended/localquota/local_fsgroup_quota.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,9 @@ var _ = g.Describe("[Conformance][volumes] Test local storage quota", func() {
133133
o.Expect(volDir).NotTo(o.Equal(""))
134134
args := []string{"-f", "-c", "'%T'", volDir}
135135
outBytes, _ := exec.Command("stat", args...).Output()
136-
o.Expect(strings.Contains(string(outBytes), "xfs")).To(o.BeTrue())
136+
if !strings.Contains(string(outBytes), "xfs") {
137+
g.Skip("Volume directory is not on an XFS filesystem, skipping...")
138+
}
137139

138140
g.By("lookup test projects fsGroup ID")
139141
fsGroup, err := lookupFSGroup(oc, project)

0 commit comments

Comments
 (0)