From: Katie Hockman Date: Mon, 8 Nov 2021 17:13:01 +0000 (-0500) Subject: testing: remove package from fuzz crasher message X-Git-Tag: go1.18beta1~442 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=2559a98a3cda46084cbdd3ea49217fdc8074ce7a;p=gostls13.git 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 Run-TryBot: Katie Hockman Reviewed-by: Bryan C. Mills Reviewed-by: Julie Qiu --- diff --git a/src/testing/fuzz.go b/src/testing/fuzz.go index 10665168f4..46c9d63df4 100644 --- a/src/testing/fuzz.go +++ b/src/testing/fuzz.go @@ -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