You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
packer/builder/virtualbox/common/guest_additions_config_test.go

17 lines
274 B

package common
import (
"testing"
)
func TestGuestAdditionsConfigPrepare(t *testing.T) {
c := new(GuestAdditionsConfig)
var errs []error
c.GuestAdditionsMode = "disable"
errs = c.Prepare("none")
if len(errs) > 0 {
t.Fatalf("should not have error: %s", errs)
}
}