mirror of
https://github.com/reactos/syzkaller.git
synced 2025-02-14 16:38:40 +00:00
pkg/instance: say that gvisor can create instances out of thin air
This commit is contained in:
parent
665947c70a
commit
802897bc33
@ -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")
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user