mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-26 05:03:09 +00:00
e2e framework: don't fail when DumpAllNamespaceInfo is nil
It is set in all of the test/e2e* suites, but not in the ginkgo output tests. This check is needed before adding a test case there which would trigger this nil pointer access.
This commit is contained in:
parent
bc6afee049
commit
73b60ba769
@ -268,6 +268,9 @@ func (f *Framework) dumpNamespaceInfo() {
|
|||||||
if !TestContext.DumpLogsOnFailure {
|
if !TestContext.DumpLogsOnFailure {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
if f.DumpAllNamespaceInfo == nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
ginkgo.By("dump namespace information after failure", func() {
|
ginkgo.By("dump namespace information after failure", func() {
|
||||||
if !f.SkipNamespaceCreation {
|
if !f.SkipNamespaceCreation {
|
||||||
for _, ns := range f.namespacesToDelete {
|
for _, ns := range f.namespacesToDelete {
|
||||||
|
Loading…
Reference in New Issue
Block a user