2019-03-16 18:18:29 +02:00
|
|
|
package common
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
)
|
|
|
|
|
|
|
|
func TestGuestAdditionsConfigPrepare(t *testing.T) {
|
|
|
|
c := new(GuestAdditionsConfig)
|
|
|
|
var errs []error
|
|
|
|
|
|
|
|
c.GuestAdditionsMode = "disable"
|
2020-11-18 12:43:05 -08:00
|
|
|
errs = c.Prepare("none")
|
2019-03-16 18:18:29 +02:00
|
|
|
if len(errs) > 0 {
|
|
|
|
t.Fatalf("should not have error: %s", errs)
|
|
|
|
}
|
|
|
|
}
|