add test for crash

pull/11382/head
Adrien Delorme 5 years ago
parent e0ac45e264
commit 8b16de3f54

@ -426,6 +426,14 @@ func TestBuild(t *testing.T) {
},
},
},
{
name: "hcl - test crash #11381",
args: []string{
testFixture("hcl", "nil-component-crash.pkr.hcl"),
},
expectedCode: 1,
},
}
for _, tt := range tc {

@ -0,0 +1,10 @@
source "null" "basic-example" {
}
build {
sources = ["sources.null.basic-example"]
provisioner "foo" {
timeout = "10"
}
}
Loading…
Cancel
Save