Commit 30575e52 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #45323 from karataliu/NamespaceDeletionLogFix

Automatic merge from submit-queue (batch tested with PRs 45364, 45369, 45323) Fix namespace deletion log in e2e test framework. **What this PR does / why we need it**: Current log message for namespace deletion will show under wrong condition. **Which issue this PR fixes** **Release note**: NONE
parents 78e08cf7 78f929a4
...@@ -258,12 +258,11 @@ func (f *Framework) AfterEach() { ...@@ -258,12 +258,11 @@ func (f *Framework) AfterEach() {
} }
} }
} else { } else {
if TestContext.DeleteNamespace { if !TestContext.DeleteNamespace {
Logf("Found DeleteNamespace=false, skipping namespace deletion!") Logf("Found DeleteNamespace=false, skipping namespace deletion!")
} else if TestContext.DeleteNamespaceOnFailure { } else {
Logf("Found DeleteNamespaceOnFailure=false, skipping namespace deletion!") Logf("Found DeleteNamespaceOnFailure=false and current test failed, skipping namespace deletion!")
} }
} }
// Paranoia-- prevent reuse! // Paranoia-- prevent reuse!
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment