We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4000732 + c3c7ea2 commit 541b4e4Copy full SHA for 541b4e4
test/e2e/framework/framework.go
@@ -332,6 +332,11 @@ func (f *Framework) AfterEach() {
332
if err := f.ClientSet.CoreV1().Namespaces().Delete(ns.Name, nil); err != nil {
333
if !apierrors.IsNotFound(err) {
334
nsDeletionErrors[ns.Name] = err
335
+
336
+ // Dump namespace if we are unable to delete the namespace and the dump was not already performed.
337
+ if !ginkgo.CurrentGinkgoTestDescription().Failed && TestContext.DumpLogsOnFailure {
338
+ DumpAllNamespaceInfo(f.ClientSet, ns.Name)
339
+ }
340
} else {
341
Logf("Namespace %v was already deleted", ns.Name)
342
}
0 commit comments