pkg/instance: say that gvisor can create instances out of thin air

This commit is contained in:
Dmitry Vyukov 2018-06-23 10:12:35 +02:00
parent 665947c70a
commit 802897bc33
2 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@ type Env struct {
func NewEnv(cfg *mgrconfig.Config) (*Env, error) {
switch cfg.Type {
case "gce", "qemu":
case "gce", "qemu", "gvisor":
default:
return nil, fmt.Errorf("test instances can only work with qemu/gce")
}

View File

@ -337,7 +337,7 @@ func (mgr *Manager) testImage(imageDir string, info *BuildInfo) error {
}
defer os.RemoveAll(mgrcfg.Workdir)
switch typ := mgrcfg.Type; typ {
case "gce", "qemu":
case "gce", "qemu", "gvisor":
default:
// Other types don't support creating machines out of thin air.
return nil