mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Add test for ignoring invalid dockerfile instructions
Signed-off-by: Tibor Vass <teabee89@gmail.com>
This commit is contained in:
parent
a650ab7f29
commit
9fe1dd3103
1 changed files with 12 additions and 0 deletions
|
@ -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")
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue