diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2017-11-06 14:11:26 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2017-11-06 15:01:28 +0100 |
| commit | d5a1adcc06d06cf0b463d5b083d148e26d485109 (patch) | |
| tree | b2204dc6660072bf4d480eaa29ae36d90aecd200 /tools | |
| parent | 0b00174908a9a65723758ceacc8bc8c23f933878 (diff) | |
tools/syz-execprog: allow to override target OS
This is currently useful for akaros, which is tested remotely.
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/syz-execprog/execprog.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/syz-execprog/execprog.go b/tools/syz-execprog/execprog.go index 6c5df9ffd..da8e7b56b 100644 --- a/tools/syz-execprog/execprog.go +++ b/tools/syz-execprog/execprog.go @@ -25,6 +25,7 @@ import ( ) var ( + flagOS = flag.String("os", runtime.GOOS, "target os") flagArch = flag.String("arch", runtime.GOARCH, "target arch") flagExecutor = flag.String("executor", "./syz-executor", "path to executor binary") flagCoverFile = flag.String("coverfile", "", "write coverage to the file") @@ -44,7 +45,7 @@ func main() { os.Exit(1) } - target, err := prog.GetTarget(runtime.GOOS, *flagArch) + target, err := prog.GetTarget(*flagOS, *flagArch) if err != nil { Fatalf("%v", err) } |
