mirror of https://github.com/k3s-io/k3s
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**: NONEpull/6/head
commit
30575e521e
|
@ -258,12 +258,11 @@ func (f *Framework) AfterEach() {
|
|||
}
|
||||
}
|
||||
} else {
|
||||
if TestContext.DeleteNamespace {
|
||||
if !TestContext.DeleteNamespace {
|
||||
Logf("Found DeleteNamespace=false, skipping namespace deletion!")
|
||||
} else if TestContext.DeleteNamespaceOnFailure {
|
||||
Logf("Found DeleteNamespaceOnFailure=false, skipping namespace deletion!")
|
||||
} else {
|
||||
Logf("Found DeleteNamespaceOnFailure=false and current test failed, skipping namespace deletion!")
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// Paranoia-- prevent reuse!
|
||||
|
|
Loading…
Reference in New Issue