Skip to content

Commit

Permalink
Merge pull request #16366 from bparees/log_dump
Browse files Browse the repository at this point in the history
Automatic merge from submit-queue (batch tested with PRs 16089, 16305, 16219, 15934, 16366)

dump pod state on test failure
  • Loading branch information
openshift-merge-robot authored Sep 16, 2017
2 parents 428befa + 3368df8 commit 09de270
Show file tree
Hide file tree
Showing 2 changed files with 102 additions and 86 deletions.
6 changes: 6 additions & 0 deletions test/extended/builds/s2i_incremental.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ var _ = g.Describe("[builds][Slow] incremental s2i build", func() {
o.Expect(err).NotTo(o.HaveOccurred())
})

g.AfterEach(func() {
if g.CurrentGinkgoTestDescription().Failed {
exutil.DumpPodStates(oc)
}
})

g.Describe("Building from a template", func() {
g.It(fmt.Sprintf("should create a build from %q template and run it", templateFixture), func() {
oc.SetOutputDir(exutil.TestContext.OutputDir)
Expand Down
Loading

0 comments on commit 09de270

Please sign in to comment.