From 7e02dfac6584de88e03df494ca500b59802d93eb Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Mon, 25 Nov 2024 12:07:11 +0100 Subject: vm: dedup VM count restriction in debug mode Move the VM count restriction logic info vm package. This avoids lots of duplication, makes it supported for VM types that failed to do this, and allows to unify more VM count logic in future. --- vm/vmware/vmware.go | 4 ---- 1 file changed, 4 deletions(-) (limited to 'vm/vmware') diff --git a/vm/vmware/vmware.go b/vm/vmware/vmware.go index 56a97e016..104c3d6a9 100644 --- a/vm/vmware/vmware.go +++ b/vm/vmware/vmware.go @@ -65,10 +65,6 @@ func ctor(env *vmimpl.Env) (vmimpl.Pool, error) { if _, err := exec.LookPath("vmrun"); err != nil { return nil, fmt.Errorf("cannot find vmrun") } - if env.Debug && cfg.Count > 1 { - log.Logf(0, "limiting number of VMs from %v to 1 in debug mode", cfg.Count) - cfg.Count = 1 - } pool := &Pool{ cfg: cfg, env: env, -- cgit mrf-deployment