Skip to content

Commit 9baa7ae

Browse files
committed
add more globals to try to dump logs on failure
1 parent 9d5ba9e commit 9baa7ae

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

cmd/openshift-tests/openshift-tests.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ func newRunCommand() *cobra.Command {
117117
return err
118118
}
119119
e2e.AfterReadingAllFlags(exutil.TestContext)
120+
e2e.TestContext.DumpLogsOnFailure = true
120121
exutil.TestContext.DumpLogsOnFailure = true
121122
return opt.Run(args)
122123
})
@@ -179,6 +180,7 @@ func newRunUpgradeCommand() *cobra.Command {
179180
return err
180181
}
181182
e2e.AfterReadingAllFlags(exutil.TestContext)
183+
e2e.TestContext.DumpLogsOnFailure = true
182184
exutil.TestContext.DumpLogsOnFailure = true
183185
return opt.Run(args)
184186
})
@@ -215,6 +217,7 @@ func newRunTestCommand() *cobra.Command {
215217
return err
216218
}
217219
e2e.AfterReadingAllFlags(exutil.TestContext)
220+
e2e.TestContext.DumpLogsOnFailure = true
218221
exutil.TestContext.DumpLogsOnFailure = true
219222
return testOpt.Run(args)
220223
},

0 commit comments

Comments
 (0)