зеркало из https://github.com/microsoft/docker.git
Add test for ignoring invalid dockerfile instructions
Signed-off-by: Tibor Vass <teabee89@gmail.com>
This commit is contained in:
Родитель
a650ab7f29
Коммит
9fe1dd3103
|
@ -2423,3 +2423,15 @@ func TestBuildCmdJSONNoShDashC(t *testing.T) {
|
|||
|
||||
logDone("build - cmd should not have /bin/sh -c for json")
|
||||
}
|
||||
|
||||
func TestBuildIgnoreInvalidInstruction(t *testing.T) {
|
||||
name := "testbuildignoreinvalidinstruction"
|
||||
defer deleteImages(name)
|
||||
|
||||
out, _, err := buildImageWithOut(name, "FROM busybox\nfoo bar", true)
|
||||
if err != nil {
|
||||
t.Fatal(err, out)
|
||||
}
|
||||
|
||||
logDone("build - ignore invalid Dockerfile instruction")
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче