mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-13 10:33:35 +00:00
e2e: Add early return in Context() for disabled tests
Some parts of the Context() seem to get executed, even when BeforeEach() did a Skip() for the test. By adding a return inside the Context(), the tests should not get executed at all. This was noticed in a failed test, where upgrade was running, eventhough the job was executed as a nornal non-upgrade one. Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
committed by
mergify[bot]
parent
ef1d589caa
commit
701b5d7ecb
@ -277,6 +277,10 @@ var _ = Describe("cephfs", func() {
|
||||
})
|
||||
|
||||
Context("Test CephFS CSI", func() {
|
||||
if !testCephFS || upgradeTesting {
|
||||
return
|
||||
}
|
||||
|
||||
It("Test CephFS CSI", func() {
|
||||
pvcPath := cephFSExamplePath + "pvc.yaml"
|
||||
appPath := cephFSExamplePath + "pod.yaml"
|
||||
|
Reference in New Issue
Block a user