aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/instance/instance.go
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2018-08-29 17:45:13 -0700
committerDmitry Vyukov <dvyukov@google.com>2018-08-29 17:45:13 -0700
commita1b245b4dddcdc11b766620859ce3e150213bfc5 (patch)
treecf2596b5ce9e3c50d344ec0f53610b3b449b5127 /pkg/instance/instance.go
parente766b07a54b5ad857651e2c4abf46b059014e9b5 (diff)
pkg/instance: fix job testing
New FuzzerCmd generates flags that can't be parsed by an old fuzzer. Fix that and add a test.
Diffstat (limited to 'pkg/instance/instance.go')
-rw-r--r--pkg/instance/instance.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/pkg/instance/instance.go b/pkg/instance/instance.go
index ebcf75c40..ad0a1ba76 100644
--- a/pkg/instance/instance.go
+++ b/pkg/instance/instance.go
@@ -372,10 +372,14 @@ func FuzzerCmd(fuzzer, executor, name, OS, arch, fwdAddr, sandbox string, procs,
// because old execprog does not have os flag.
osArg = " -os=" + OS
}
+ runtestArg := ""
+ if runtest {
+ runtestArg = " -runtest"
+ }
return fmt.Sprintf("%v -executor=%v -name=%v -arch=%v%v -manager=%v -sandbox=%v"+
- " -procs=%v -v=%d -cover=%v -debug=%v -test=%v -runtest=%v",
+ " -procs=%v -v=%d -cover=%v -debug=%v -test=%v%v",
fuzzer, executor, name, arch, osArg, fwdAddr, sandbox,
- procs, verbosity, cover, debug, test, runtest)
+ procs, verbosity, cover, debug, test, runtestArg)
}
func ExecprogCmd(execprog, executor, OS, arch, sandbox string, repeat, threaded, collide bool,