github.phpd.cn/hashicorp/packer@v1.3.2/builder/virtualbox/common/export_opts_test.go (about) 1 package common 2 3 import ( 4 "testing" 5 ) 6 7 func TestExportOptsPrepare_BootWait(t *testing.T) { 8 var c *ExportOpts 9 var errs []error 10 11 // Good 12 c = new(ExportOpts) 13 c.ExportOpts = []string{ 14 "--options", 15 } 16 errs = c.Prepare(testConfigTemplate(t)) 17 if len(errs) > 0 { 18 t.Fatalf("should not have error: %s", errs) 19 } 20 }