diff --git a/test/e2e/basic_ops_test.go b/test/e2e/basic_ops_test.go index 2844c440b8..1fa46e6fa6 100644 --- a/test/e2e/basic_ops_test.go +++ b/test/e2e/basic_ops_test.go @@ -110,6 +110,8 @@ var _ = Describe("basic", Label("required", "basic"), func() { }) AfterEach(func() { - cleanup(ctx, clusterProxy, namespace, cancelWatches, e2eConfig.GetIntervals("default", "wait-namespace-deleted")...) + if !skipCleanup { + cleanup(ctx, clusterProxy, namespace, cancelWatches, e2eConfig.GetIntervals("default", "wait-namespace-deleted")...) + } }) }) diff --git a/test/e2e/external_inspection_test.go b/test/e2e/external_inspection_test.go index a576b60f95..29920ec50b 100644 --- a/test/e2e/external_inspection_test.go +++ b/test/e2e/external_inspection_test.go @@ -236,6 +236,8 @@ var _ = Describe("External Inspection", Label("required", "external-inspection") }) AfterEach(func() { - cleanup(ctx, clusterProxy, namespace, cancelWatches, e2eConfig.GetIntervals("default", "wait-namespace-deleted")...) + if !skipCleanup { + cleanup(ctx, clusterProxy, namespace, cancelWatches, e2eConfig.GetIntervals("default", "wait-namespace-deleted")...) + } }) }) diff --git a/test/e2e/inspection_test.go b/test/e2e/inspection_test.go index 1417451567..4ece60ebf2 100644 --- a/test/e2e/inspection_test.go +++ b/test/e2e/inspection_test.go @@ -125,6 +125,8 @@ var _ = Describe("Inspection", Label("required", "inspection"), func() { }) AfterEach(func() { - cleanup(ctx, clusterProxy, namespace, cancelWatches, e2eConfig.GetIntervals("default", "wait-namespace-deleted")...) + if !skipCleanup { + cleanup(ctx, clusterProxy, namespace, cancelWatches, e2eConfig.GetIntervals("default", "wait-namespace-deleted")...) + } }) }) diff --git a/test/e2e/live_iso_test.go b/test/e2e/live_iso_test.go index 223d470c70..64ce709edb 100644 --- a/test/e2e/live_iso_test.go +++ b/test/e2e/live_iso_test.go @@ -138,6 +138,8 @@ var _ = Describe("Live-ISO", Label("required", "live-iso"), func() { }) AfterEach(func() { - cleanup(ctx, clusterProxy, namespace, cancelWatches, e2eConfig.GetIntervals("default", "wait-namespace-deleted")...) + if !skipCleanup { + cleanup(ctx, clusterProxy, namespace, cancelWatches, e2eConfig.GetIntervals("default", "wait-namespace-deleted")...) + } }) }) diff --git a/test/e2e/provisioning_and_annotation_test.go b/test/e2e/provisioning_and_annotation_test.go index 6a21580830..64b01be501 100644 --- a/test/e2e/provisioning_and_annotation_test.go +++ b/test/e2e/provisioning_and_annotation_test.go @@ -258,6 +258,8 @@ var _ = Describe("Provision, detach, recreate from status and deprovision", Labe }) AfterEach(func() { - cleanup(ctx, clusterProxy, namespace, cancelWatches, e2eConfig.GetIntervals("default", "wait-namespace-deleted")...) + if !skipCleanup { + cleanup(ctx, clusterProxy, namespace, cancelWatches, e2eConfig.GetIntervals("default", "wait-namespace-deleted")...) + } }) }) diff --git a/test/e2e/re_inspection_test.go b/test/e2e/re_inspection_test.go index b4b9f72fcd..5f3902fba1 100644 --- a/test/e2e/re_inspection_test.go +++ b/test/e2e/re_inspection_test.go @@ -108,6 +108,8 @@ var _ = Describe("Re-Inspection", Label("required", "re-inspection"), func() { }) AfterEach(func() { - cleanup(ctx, clusterProxy, namespace, cancelWatches, e2eConfig.GetIntervals("default", "wait-namespace-deleted")...) + if !skipCleanup { + cleanup(ctx, clusterProxy, namespace, cancelWatches, e2eConfig.GetIntervals("default", "wait-namespace-deleted")...) + } }) })