mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-09-06 08:07:11 +00:00
Skip uninstall and resource cleanup when fail-fast is enabled.
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com>
This commit is contained in:
@@ -79,7 +79,9 @@ func APIGroupVersionsTest() {
|
||||
})
|
||||
|
||||
AfterEach(func() {
|
||||
if !veleroCfg.Debug {
|
||||
if CurrentSpecReport().Failed() && veleroCfg.FailFast {
|
||||
fmt.Println("Test case failed and fail fast is enabled. Skip resource clean up.")
|
||||
} else {
|
||||
for i := 0; i < testCaseNum; i++ {
|
||||
curResource := fmt.Sprintf("rockband%ds", i)
|
||||
curGroup := fmt.Sprintf("%s.%d", group, i)
|
||||
|
||||
Reference in New Issue
Block a user