diff options
Diffstat (limited to 'pkg/instance/instance.go')
| -rw-r--r-- | pkg/instance/instance.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/pkg/instance/instance.go b/pkg/instance/instance.go index ad0a1ba76..c7c457ea6 100644 --- a/pkg/instance/instance.go +++ b/pkg/instance/instance.go @@ -31,10 +31,8 @@ type Env struct { } func NewEnv(cfg *mgrconfig.Config) (*Env, error) { - switch cfg.Type { - case "gce", "qemu", "gvisor": - default: - return nil, fmt.Errorf("test instances can only work with qemu/gce") + if !vm.AllowsOvercommit(cfg.Type) { + return nil, fmt.Errorf("test instances are not supported for %v VMs", cfg.Type) } if cfg.Workdir == "" { return nil, fmt.Errorf("workdir path is empty") |
