From 1e4ce7c30c4154090d22d1c2b9bd490e91a7796b Mon Sep 17 00:00:00 2001 From: Alan Donovan Date: Thu, 5 Oct 2023 13:14:29 -0400 Subject: [PATCH] internal/refactor/inline: yet more tweaks to everything test Change-Id: I052a9de860abbad199329b1c9ef52507988a59dc Reviewed-on: https://go-review.googlesource.com/c/tools/+/533175 Auto-Submit: Alan Donovan Reviewed-by: Robert Findley LUCI-TryBot-Result: Go LUCI --- internal/refactor/inline/everything_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/internal/refactor/inline/everything_test.go b/internal/refactor/inline/everything_test.go index a1c5448d1d1..f6111495a48 100644 --- a/internal/refactor/inline/everything_test.go +++ b/internal/refactor/inline/everything_test.go @@ -10,6 +10,7 @@ import ( "go/ast" "go/parser" "go/types" + "log" "os" "path/filepath" "strings" @@ -37,7 +38,7 @@ var packagesFlag = flag.String("packages", "", "set of packages for TestEverythi // // And these commands to inline everything in the kubernetes repository: // -// $ go build -c -o /tmp/everything ./internal/refactor/inline/ +// $ go test -c -o /tmp/everything ./internal/refactor/inline/ // $ (cd kubernetes && /tmp/everything -test.run=Everything -packages=./...) // // TODO(adonovan): @@ -226,7 +227,7 @@ func TestEverything(t *testing.T) { noMutCheck() } } - t.Errorf("Analyzed %d packages", len(pkgs)) + log.Printf("Analyzed %d packages", len(pkgs)) } type importerFunc func(path string) (*types.Package, error)