Build agents might not have guest additions

This commit is contained in:
Taliesin Sisson 2015-10-30 20:13:48 +00:00
parent aaf9007249
commit 4b6ce3da60
1 changed files with 9 additions and 8 deletions

View File

@ -15,6 +15,7 @@ func testConfig() map[string]interface{} {
"ssh_username": "foo",
"ram_size_mb": 64,
"disk_size": 256,
"guest_additions_mode": "none",
packer.BuildNameConfigKey: "foo",
}
}
@ -56,7 +57,7 @@ func TestBuilderPrepare_DiskSize(t *testing.T) {
t.Fatalf("bad err: %s", err)
}
if b.config.DiskSize != 40 * 1024 {
if b.config.DiskSize != 40*1024 {
t.Fatalf("bad size: %d", b.config.DiskSize)
}