diff options
| author | Matthew Dempsky <mdempsky@google.com> | 2019-08-19 18:23:15 -0700 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2019-08-27 14:39:18 -0700 |
| commit | fd37b39ea8db38458059092f5f94b582392e8922 (patch) | |
| tree | e72046a32eb190e7d069bd38c4d132a72d6fa05b /pkg/instance/instance.go | |
| parent | d21c5d9de0cd2f3124a8218f70c46ab97863a7a2 (diff) | |
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".
Diffstat (limited to 'pkg/instance/instance.go')
| -rw-r--r-- | pkg/instance/instance.go | 6 |
1 files changed, 4 insertions, 2 deletions
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"+ |
