pkg/repro: pass target OS to execprog

Pass target OS to execprog and pass executor the same way
manager passes it to fuzzer.
This commit is contained in:
Dmitry Vyukov 2018-07-04 10:09:30 +02:00
parent 3e6e034413
commit 2290cea0a3

View File

@ -544,9 +544,9 @@ func (ctx *context) testProgs(entries []*prog.LogEntry, duration time.Duration,
}
program += "]"
}
command := fmt.Sprintf("%v -executor %v -arch=%v -cover=0 -procs=%v -repeat=%v"+
command := fmt.Sprintf("%v -executor=%v -os=%v -arch=%v -cover=0 -procs=%v -repeat=%v"+
" -sandbox %v -threaded=%v -collide=%v %v",
inst.execprogBin, inst.executorBin, ctx.cfg.TargetArch, opts.Procs, repeat,
inst.execprogBin, inst.executorBin, ctx.cfg.TargetOS, ctx.cfg.TargetArch, opts.Procs, repeat,
opts.Sandbox, opts.Threaded, opts.Collide, vmProgFile)
ctx.reproLog(2, "testing program (duration=%v, %+v): %s", duration, opts, program)
return ctx.testImpl(inst.Instance, command, duration)