Skip to content

Commit 1642cd7

Browse files
author
Bryan C. Mills
committed
cmd/go: update test_race_install expected output for CL 266368
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 <[email protected]> Run-TryBot: Bryan C. Mills <[email protected]> TryBot-Result: Go Bot <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]>
1 parent 9f39a43 commit 1642cd7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@ go install -race -pkgdir=$WORKDIR/tmp/pkg std
66

77
# Make sure go test -i -race doesn't rebuild cached packages
88
go test -race -pkgdir=$WORKDIR/tmp/pkg -i -v empty/pkg
9-
! stderr .
9+
cmp stderr stderr.txt
1010

1111
-- go.mod --
1212
module empty
1313

1414
go 1.16
1515
-- pkg/pkg.go --
1616
package p
17-
17+
-- stderr.txt --
18+
go test: -i flag is deprecated

0 commit comments

Comments
 (0)