From fd37b39ea8db38458059092f5f94b582392e8922 Mon Sep 17 00:00:00 2001 From: Matthew Dempsky Date: Mon, 19 Aug 2019 18:23:15 -0700 Subject: all: convert Fuchsia to use "host fuzzing" mode Go support is not a priority for Fuchsia at the moment, so it's preferable to use host fuzzing mode for Fuchsia like currently done for Akaros. This commit basically looks for all the places where there was special logic for OS=="akaros" and extends the same logic for OS=="fuchsia". --- pkg/instance/instance.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'pkg/instance/instance.go') diff --git a/pkg/instance/instance.go b/pkg/instance/instance.go index f46673d47..cc1b147f1 100644 --- a/pkg/instance/instance.go +++ b/pkg/instance/instance.go @@ -394,7 +394,8 @@ func (inst *inst) testProgram(command string, testTime time.Duration) error { func FuzzerCmd(fuzzer, executor, name, OS, arch, fwdAddr, sandbox string, procs, verbosity int, cover, debug, test, runtest bool) string { osArg := "" - if OS == "akaros" { + switch OS { + case "akaros", "fuchsia": // Only akaros needs OS, because the rest assume host OS. // But speciying OS for all OSes breaks patch testing on syzbot // because old execprog does not have os flag. @@ -425,7 +426,8 @@ func ExecprogCmd(execprog, executor, OS, arch, sandbox string, repeat, threaded, repeatCount = 0 } osArg := "" - if OS == "akaros" { + switch OS { + case "akaros", "fuchsia": osArg = " -os=" + OS } return fmt.Sprintf("%v -executor=%v -arch=%v%v -sandbox=%v"+ -- cgit mrf-deployment