From 1642cd78b540a9e489d076c819fe0220eb859183 Mon Sep 17 00:00:00 2001 From: "Bryan C. Mills" Date: Mon, 9 Nov 2020 21:27:35 -0500 Subject: [PATCH] cmd/go: update test_race_install expected output for CL 266368 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit test_race_install checks that 'go test -i -race …' does not rebuild already installed packages, by also passing '-v' and verifying that no package names are printed to stderr. CL 266368 added a deprecation message for the '-i' flag that caused the stderr output to be non-empty, although it still does not print any package names. Updates #41696 Change-Id: I13e10e49b7c33139be9b13f24cb393c9f58fd85d Reviewed-on: https://go-review.googlesource.com/c/go/+/268581 Trust: Bryan C. Mills Run-TryBot: Bryan C. Mills TryBot-Result: Go Bot Reviewed-by: Dmitri Shuralyov --- src/cmd/go/testdata/script/test_race_install.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/cmd/go/testdata/script/test_race_install.txt b/src/cmd/go/testdata/script/test_race_install.txt index d28809bfdc..8b1f343a32 100644 --- a/src/cmd/go/testdata/script/test_race_install.txt +++ b/src/cmd/go/testdata/script/test_race_install.txt @@ -6,7 +6,7 @@ go install -race -pkgdir=$WORKDIR/tmp/pkg std # Make sure go test -i -race doesn't rebuild cached packages go test -race -pkgdir=$WORKDIR/tmp/pkg -i -v empty/pkg -! stderr . +cmp stderr stderr.txt -- go.mod -- module empty @@ -14,4 +14,5 @@ module empty go 1.16 -- pkg/pkg.go -- package p - +-- stderr.txt -- +go test: -i flag is deprecated -- 2.50.0