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.
1 parent d87c921 commit c3c7ea2Copy full SHA for c3c7ea2
test/e2e/framework/framework.go
@@ -334,6 +334,11 @@ func (f *Framework) AfterEach() {
334
if err := f.ClientSet.CoreV1().Namespaces().Delete(ns.Name, nil); err != nil {
335
if !apierrors.IsNotFound(err) {
336
nsDeletionErrors[ns.Name] = err
337
+
338
+ // Dump namespace if we are unable to delete the namespace and the dump was not already performed.
339
+ if !ginkgo.CurrentGinkgoTestDescription().Failed && TestContext.DumpLogsOnFailure {
340
+ DumpAllNamespaceInfo(f.ClientSet, ns.Name)
341
+ }
342
} else {
343
Logf("Namespace %v was already deleted", ns.Name)
344
}
0 commit comments