1
0
mirror of https://github.com/golang/go synced 2024-11-17 13:14:56 -07:00

testing: remove package from fuzz crasher message

Fixes #48149

Change-Id: Iaf91d2c54fda809c7da90cdfb6d1d075f474c69b
Reviewed-on: https://go-review.googlesource.com/c/go/+/362116
Trust: Katie Hockman <katie@golang.org>
Run-TryBot: Katie Hockman <katie@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
Reviewed-by: Julie Qiu <julie@golang.org>
This commit is contained in:
Katie Hockman 2021-11-08 12:13:01 -05:00
parent b7529c3617
commit 2559a98a3c

View File

@ -356,7 +356,7 @@ func (f *F) Fuzz(ff interface{}) {
crashPath := crashErr.CrashPath()
fmt.Fprintf(f.w, "Crash written to %s\n", crashPath)
testName := filepath.Base(crashPath)
fmt.Fprintf(f.w, "To re-run:\ngo test %s -run=%s/%s\n", f.fuzzContext.deps.ImportPath(), f.name, testName)
fmt.Fprintf(f.w, "To re-run:\ngo test -run=%s/%s\n", f.name, testName)
}
}
// TODO(jayconrod,katiehockman): Aggregate statistics across workers