diff --git a/tests/conformance/conformance_test.go b/tests/conformance/conformance_test.go index decea79a80b..7212d1da14d 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) {