aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/instance/instance.go
diff options
context:
space:
mode:
authorMara Mihali <maramihali@google.com>2021-07-19 08:05:31 +0000
committermaramihali <maramihali@google.com>2021-07-19 16:00:14 +0300
commitbc48c9ab65ed47d707bedef64ca52e1a5c383250 (patch)
treea77c540b44c24c667dee862dce2405571b515880 /pkg/instance/instance.go
parent78bd9c70f4d022d9e022faf06f5122c981dd1c36 (diff)
pkg/instance, syz-runner, syz-verifier: add option to create a new environment for each program
Diffstat (limited to 'pkg/instance/instance.go')
-rw-r--r--pkg/instance/instance.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/pkg/instance/instance.go b/pkg/instance/instance.go
index c65d97cce..e0c1e3ce8 100644
--- a/pkg/instance/instance.go
+++ b/pkg/instance/instance.go
@@ -500,8 +500,7 @@ var MakeBin = func() string {
return "make"
}()
-func RunnerCmd(prog, fwdAddr, os, arch string, poolIdx, vmIdx int, collide, threaded bool) string {
+func RunnerCmd(prog, fwdAddr, os, arch string, poolIdx, vmIdx int, collide, threaded, newEnv bool) string {
return fmt.Sprintf("%s -addr=%s -os=%s -arch=%s -pool=%d -vm=%d "+
- "-collide=%t -threaded=%t", prog, fwdAddr, os, arch, poolIdx, vmIdx,
- collide, threaded)
+ "-collide=%t -threaded=%t -new-env=%t", prog, fwdAddr, os, arch, poolIdx, vmIdx, collide, threaded, newEnv)
}