]> Cypherpunks repositories - gostls13.git/commitdiff
testing: remove package from fuzz crasher message
authorKatie Hockman <katie@golang.org>
Mon, 8 Nov 2021 17:13:01 +0000 (12:13 -0500)
committerKatie Hockman <katie@golang.org>
Tue, 9 Nov 2021 15:16:57 +0000 (15:16 +0000)
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>
src/testing/fuzz.go

index 10665168f432bc0d21b5444142873f37b491e6fd..46c9d63df49442ec2aae0e78573b09891a89ebd3 100644 (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