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

@ -8,13 +8,14 @@ import (
func testConfig() map[string]interface{} {
return map[string]interface{}{
"iso_checksum": "foo",
"iso_checksum_type": "md5",
"iso_url": "http://www.packer.io",
"shutdown_command": "yes",
"ssh_username": "foo",
"ram_size_mb": 64,
"disk_size": 256,
"iso_checksum": "foo",
"iso_checksum_type": "md5",
"iso_url": "http://www.packer.io",
"shutdown_command": "yes",
"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)
}