Skip to content

Commit c0d4d5b

Browse files
committed
Accept buildah 1.7.3+ unused build arg error
Buildah 1.7.3 changed how it warns about unused build args, changing a "[Warning] One or more build-args %v were not consumed\n" format string into "[Warning] one or more build args were not consumed: %v\n". Accept either version. Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
1 parent e1bc8e9 commit c0d4d5b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/extended/builds/start.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ var _ = g.Describe("[Feature:Builds][Slow] starting a build using CLI", func() {
347347
buildLog, err := br.Logs()
348348
o.Expect(err).NotTo(o.HaveOccurred())
349349
g.By("verifying the build completed with a warning.")
350-
o.Expect(buildLog).To(o.ContainSubstring("One or more build-args [bar] were not consumed"))
350+
o.Expect(buildLog).To(o.Or(o.ContainSubstring("One or more build-args [bar] were not consumed"), o.ContainSubstring("one or more build args were not consumed: [bar]")))
351351
})
352352
})
353353

0 commit comments

Comments
 (0)