aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/instance
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2018-07-05 13:09:40 +0200
committerDmitry Vyukov <dvyukov@google.com>2018-07-05 13:09:40 +0200
commit7e2e7aa3e40ebafe283823e7fb849130a2dce4c9 (patch)
treedc418c42503e326a95a317fca3579c49257ae27e /pkg/instance
parentf85123c954f7c9475df20475569c7c584908827b (diff)
pkg/instance: pass os flag to execprog/fuzzer
Diffstat (limited to 'pkg/instance')
-rw-r--r--pkg/instance/instance.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/pkg/instance/instance.go b/pkg/instance/instance.go
index 709b29072..78859727b 100644
--- a/pkg/instance/instance.go
+++ b/pkg/instance/instance.go
@@ -265,8 +265,8 @@ func (inst *inst) testInstance() error {
if err != nil {
return &TestError{Title: fmt.Sprintf("failed to copy test binary to VM: %v", err)}
}
- cmd := fmt.Sprintf("%v -test -executor=%v -name=test -arch=%v -manager=%v -cover=0 -sandbox=%v",
- fuzzerBin, executorBin, inst.cfg.TargetArch, fwdAddr, inst.cfg.Sandbox)
+ cmd := fmt.Sprintf("%v -test -executor=%v -name=test -os=%v -arch=%v -manager=%v -cover=0 -sandbox=%v",
+ fuzzerBin, executorBin, inst.cfg.TargetOS, inst.cfg.TargetArch, fwdAddr, inst.cfg.Sandbox)
outc, errc, err := inst.vm.Run(5*time.Minute, nil, cmd)
if err != nil {
return fmt.Errorf("failed to run binary in VM: %v", err)
@@ -322,9 +322,9 @@ func (inst *inst) testRepro() error {
if !opts.Fault {
opts.FaultCall = -1
}
- cmdSyz := fmt.Sprintf("%v -executor %v -arch=%v -procs=%v -sandbox=%v"+
+ cmdSyz := fmt.Sprintf("%v -executor=%v -os=%v -arch=%v -procs=%v -sandbox=%v"+
" -fault_call=%v -fault_nth=%v -repeat=0 -cover=0 %v",
- execprogBin, executorBin, cfg.TargetArch, cfg.Procs, opts.Sandbox,
+ execprogBin, executorBin, cfg.TargetOS, cfg.TargetArch, cfg.Procs, opts.Sandbox,
opts.FaultCall, opts.FaultNth, vmProgFile)
if err := inst.testProgram(cmdSyz, 7*time.Minute); err != nil {
return err