From 0b45cac3dc627e9b6702daf3d578d970440972e9 Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Tue, 24 Sep 2024 17:22:33 +0200 Subject: pkg/instance: refactor ExecprogCmd Reduce the number of arguments by using a csource.Option value directly. --- pkg/instance/execprog.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'pkg/instance/execprog.go') diff --git a/pkg/instance/execprog.go b/pkg/instance/execprog.go index 401da784e..9363998ab 100644 --- a/pkg/instance/execprog.go +++ b/pkg/instance/execprog.go @@ -173,12 +173,7 @@ func (inst *ExecProgInstance) RunSyzProgFile(progFile string, duration time.Dura return nil, &TestError{Title: fmt.Sprintf("failed to copy prog to VM: %v", err)} } target := inst.mgrCfg.SysTarget - faultCall := -1 - if opts.Fault { - faultCall = opts.FaultCall - } - command := ExecprogCmd(inst.execprogBin, inst.executorBin, target.OS, target.Arch, inst.mgrCfg.Type, opts.Sandbox, - opts.SandboxArg, opts.Repeat, opts.Threaded, opts.Collide, opts.Procs, faultCall, opts.FaultNth, + command := ExecprogCmd(inst.execprogBin, inst.executorBin, target.OS, target.Arch, inst.mgrCfg.Type, opts, !inst.OldFlagsCompatMode, inst.mgrCfg.Timeouts.Slowdown, vmProgFile) return inst.runCommand(command, duration, exitCondition) } -- cgit mrf-deployment