Skip to content

Commit 6ff50ac

Browse files
Merge pull request #18443 from bparees/success
Automatic merge from submit-queue. expect build success in test give a better test failure reason when the build fails as seen in https://openshift-gce-devel.appspot.com/build/origin-ci-test/pr-logs/pull/18415/test_pull_request_origin_extended_builds/1042/
2 parents 0ac009a + a08b93b commit 6ff50ac

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/extended/builds/digest.go

+2
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ func testBuildDigest(oc *exutil.CLI, buildFixture string, buildLogLevel uint) {
7070
logLevelArg := fmt.Sprintf("--build-loglevel=%d", buildLogLevel)
7171
g.By("starting a test build")
7272
br, err := exutil.StartBuildAndWait(oc, "test", logLevelArg)
73+
o.Expect(err).NotTo(o.HaveOccurred())
74+
br.AssertSuccess()
7375

7476
g.By("checking that the image digest has been saved to the build status")
7577
o.Expect(br.Build.Status.Output.To).NotTo(o.BeNil())

0 commit comments

Comments
 (0)