From: Dmitri Shuralyov Date: Fri, 12 May 2023 12:54:24 +0000 (-0400) Subject: cmd/go: diff .so files quietly in TestScript/build_plugin_reproducible X-Git-Tag: go1.21rc1~550 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=ed3ea520812e314b2948ae39267105fa517bd9fe;p=gostls13.git cmd/go: diff .so files quietly in TestScript/build_plugin_reproducible 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 Reviewed-by: Bryan Mills Reviewed-by: Dmitri Shuralyov TryBot-Result: Gopher Robot Run-TryBot: Bryan Mills --- diff --git a/src/cmd/go/testdata/script/build_plugin_reproducible.txt b/src/cmd/go/testdata/script/build_plugin_reproducible.txt index b19f0eaa0d..5369954859 100644 --- a/src/cmd/go/testdata/script/build_plugin_reproducible.txt +++ b/src/cmd/go/testdata/script/build_plugin_reproducible.txt @@ -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