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/ipc/ipc.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'pkg/ipc') diff --git a/pkg/ipc/ipc.go b/pkg/ipc/ipc.go index 89799b45a..978fcb7be 100644 --- a/pkg/ipc/ipc.go +++ b/pkg/ipc/ipc.go @@ -263,15 +263,13 @@ func (env *Env) Exec(opts *ExecOpts, p *prog.Prog) (output []byte, info *ProgInf atomic.AddUint64(&env.StatExecs, 1) if env.cmd == nil { - if p.Target.OS == "akaros" { + switch p.Target.OS { + case "akaros", "fuchsia": // On akaros executor is actually ssh, // starting them too frequently leads to timeouts. <-rateLimit.C } tmpDirPath := "./" - if p.Target.OS == "fuchsia" { - tmpDirPath = "/data/" - } atomic.AddUint64(&env.StatRestarts, 1) env.cmd, err0 = makeCommand(env.pid, env.bin, env.config, env.inFile, env.outFile, env.out, tmpDirPath) if err0 != nil { -- cgit mrf-deployment