Signed-off-by: Tibor Vass <teabee89@gmail.com>
Tibor Vass authored on 2014/10/07 12:14:25... | ... |
@@ -2423,3 +2423,15 @@ func TestBuildCmdJSONNoShDashC(t *testing.T) { |
2423 | 2423 |
|
2424 | 2424 |
logDone("build - cmd should not have /bin/sh -c for json") |
2425 | 2425 |
} |
2426 |
+ |
|
2427 |
+func TestBuildIgnoreInvalidInstruction(t *testing.T) { |
|
2428 |
+ name := "testbuildignoreinvalidinstruction" |
|
2429 |
+ defer deleteImages(name) |
|
2430 |
+ |
|
2431 |
+ out, _, err := buildImageWithOut(name, "FROM busybox\nfoo bar", true) |
|
2432 |
+ if err != nil { |
|
2433 |
+ t.Fatal(err, out) |
|
2434 |
+ } |
|
2435 |
+ |
|
2436 |
+ logDone("build - ignore invalid Dockerfile instruction") |
|
2437 |
+} |