Skip to content

Commit 054059a

Browse files
author
OpenShift Bot
committed
Merge pull request #8564 from gabemontero/dropcapsExtTest
Merged by openshift-bot
2 parents 1a02064 + ce6f804 commit 054059a

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

test/extended/builds/s2i_dropcaps.go

+18
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,15 @@ var _ = g.Describe("[builds][Slow] Capabilities should be dropped for s2i builde
3636
g.By("starting the rootable-ruby build with --wait flag")
3737
err = oc.Run("start-build").Args("rootable-ruby", fmt.Sprintf("--from-dir=%s", s2ibuilderFixture),
3838
"--wait").Execute()
39+
// debug for failures on jenkins
40+
if err != nil {
41+
bldOuput, derr := oc.Run("logs").Args("-f", "bc/rootable-ruby").Output()
42+
if derr == nil {
43+
fmt.Fprintf(g.GinkgoWriter, "\n\n build logs : %s\n\n", bldOuput)
44+
} else {
45+
fmt.Fprintf(g.GinkgoWriter, "\n\n got error on bld logs %v\n\n", err)
46+
}
47+
}
3948
o.Expect(err).NotTo(o.HaveOccurred())
4049

4150
g.By("creating a build that tries to gain root access via su")
@@ -44,6 +53,15 @@ var _ = g.Describe("[builds][Slow] Capabilities should be dropped for s2i builde
4453

4554
g.By("start the root-access-build with the --wait flag")
4655
err = oc.Run("start-build").Args("root-access-build", "--wait").Execute()
56+
// debug for failures on jenkins
57+
if err == nil {
58+
bldOuput, derr := oc.Run("logs").Args("-f", "bc/root-access-build").Output()
59+
if derr == nil {
60+
fmt.Fprintf(g.GinkgoWriter, "\n\n build logs : %s\n\n", bldOuput)
61+
} else {
62+
fmt.Fprintf(g.GinkgoWriter, "\n\n got error on bld logs %v\n\n", err)
63+
}
64+
}
4765
o.Expect(err).To(o.HaveOccurred())
4866

4967
g.By("verifying the build status")

0 commit comments

Comments
 (0)