From 336feecc6ba5f992331276065e6bfcca777d00e7 Mon Sep 17 00:00:00 2001 From: Gregor Riepl Date: Sat, 23 Nov 2024 16:41:01 +0100 Subject: [PATCH] Add conformance test Signed-off-by: Gregor Riepl --- tests/conformance/conformance_test.go | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/conformance/conformance_test.go b/tests/conformance/conformance_test.go index decea79a80b..492c8a0123e 100644 --- a/tests/conformance/conformance_test.go +++ b/tests/conformance/conformance_test.go @@ -3451,6 +3451,17 @@ var internalTestCases = []testCase{ dockerUseBuildKit: true, buildArgs: map[string]string{"SOURCE": "e/**/**/*sub/*.txt"}, }, + + { + name: "argument inheritance", + dockerUseBuildKit: true, + dockerfileContents: strings.Join([]string{ + "FROM mirror.gcr.io/busybox AS base", + "ARG NAME=\"joe\"", + "FROM base AS build", + "RUN echo \"hello $NAME!\" > /hello.txt", + }, "\n"), + }, } func TestCommit(t *testing.T) {