Skip to content

Commit 107e83d

Browse files
committed
REMOVE: add failure trap for new-app test
1 parent 621871e commit 107e83d

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

test/extended/builds/new_app.go

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import (
55
o "github.com/onsi/gomega"
66

77
exutil "github.com/openshift/origin/test/extended/util"
8+
e2e "k8s.io/kubernetes/test/e2e/framework"
89
)
910

1011
const (
@@ -26,6 +27,18 @@ var _ = g.Describe("[builds][Conformance] oc new-app", func() {
2627
o.Expect(err).NotTo(o.HaveOccurred())
2728
})
2829

30+
g.AfterEach(func() {
31+
if !g.CurrentGinkgoTestDescription().Failed {
32+
return
33+
}
34+
out, err := oc.Run("describe").Args("is/nodejs", "-n", "openshift").Output()
35+
if err != nil {
36+
e2e.Logf("Error getting image stream: %v", err)
37+
return
38+
}
39+
e2e.Logf("\n%s\n", out)
40+
})
41+
2942
g.It("should succeed with a --name of 58 characters", func() {
3043
g.By("calling oc new-app")
3144
err := oc.Run("new-app").Args("https://github.com/openshift/nodejs-ex", "--name", a58).Execute()

0 commit comments

Comments
 (0)