Skip to content

Commit 4080ee7

Browse files
committed
Only 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 only the new version of the message. Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
1 parent 21f1917 commit 4080ee7

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
@@ -350,7 +350,7 @@ var _ = g.Describe("[Feature:Builds][Slow] starting a build using CLI", func() {
350350
buildLog, err := br.Logs()
351351
o.Expect(err).NotTo(o.HaveOccurred())
352352
g.By("verifying the build completed with a warning.")
353-
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]")))
353+
o.Expect(buildLog).To(o.ContainSubstring("one or more build args were not consumed: [bar]"))
354354
})
355355
})
356356

0 commit comments

Comments
 (0)