]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: diff .so files quietly in TestScript/build_plugin_reproducible
authorDmitri Shuralyov <dmitshur@golang.org>
Fri, 12 May 2023 12:54:24 +0000 (08:54 -0400)
committerGopher Robot <gobot@golang.org>
Fri, 12 May 2023 14:29:53 +0000 (14:29 +0000)
This avoids printing verbose binary data and making bell sounds when the
test fails. The binary data can be inspected via other means if needed.

For #58557.

Change-Id: Ia1c4f2c6b9ff2cf6f97611cf335b978fc7bb201f
Reviewed-on: https://go-review.googlesource.com/c/go/+/494577
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Bryan Mills <bcmills@google.com>

src/cmd/go/testdata/script/build_plugin_reproducible.txt

index b19f0eaa0dc874d933545c6dfa94e43626a7b81b..5369954859563102a76efc4f977d56db41043c73 100644 (file)
@@ -3,7 +3,7 @@
 
 go build -trimpath -buildvcs=false -buildmode=plugin -o a.so main.go
 go build -trimpath -buildvcs=false -buildmode=plugin -o b.so main.go
-cmp a.so b.so
+cmp -q a.so b.so
 
 -- main.go --
 package main