The workers were printing PASS/FAIL logs and
various others things, when that should be
the sole responsibility of the coordinator
process, which will have the aggregated data.
Change-Id: I7ac9883db62f0fe79ba1799cb88773c542a2a948
Reviewed-on: https://go-review.googlesource.com/c/go/+/274652
Trust: Katie Hockman <katie@golang.org>
Run-TryBot: Katie Hockman <katie@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Jay Conrod <jayconrod@google.com>
}
func (f *F) report() {
+ if *isFuzzWorker {
+ return
+ }
if f.Failed() {
fmt.Fprintf(f.w, "--- FAIL: %s\n%s\n", f.name, f.result.String())
} else if f.chatty != nil {
}
if Verbose() {
f.chatty = newChattyPrinter(f.w)
- f.chatty.Updatef(f.name, "--- FUZZ: %s\n", f.name)
+ if !*isFuzzWorker {
+ f.chatty.Updatef(f.name, "--- FUZZ: %s\n", f.name)
+ }
}
go f.runTarget(target.Fn)
<-f.signal
if *matchFuzz != "" && !fuzzingRan {
fmt.Fprintln(os.Stderr, "testing: warning: no targets to fuzz")
}
- if !fuzzingOk {
+ if !fuzzingOk && !*isFuzzWorker {
fmt.Println("FAIL")
m.exitCode = 1
return
}
- fmt.Println("PASS")
m.exitCode = 0
+ if !*isFuzzWorker {
+ fmt.Println("PASS")
+ }
return
}