From b865bd1fb1ee46158247b7c0e6d9e434502f9beb Mon Sep 17 00:00:00 2001 From: Michael Matloob Date: Wed, 8 Jan 2020 14:01:27 -0500 Subject: [PATCH] cmd/go: delete testdata/testonly dir: it isn't being used anywhere The TestGoBuildTestOnly test seems to be using files in testonly, but it's actually creating different files in a tempdir GOPATH that are completely unrelated. Part of converting all tests to script framework to improve test parallelism. Updates #36320 Updates #17751 Change-Id: Ie2c6d477bbb2eac7c013ee8dea9330a367b4f663 Reviewed-on: https://go-review.googlesource.com/c/go/+/213821 Reviewed-by: Jay Conrod --- src/cmd/go/testdata/testonly/p_test.go | 1 - src/cmd/go/testdata/testonly2/t.go | 6 ------ 2 files changed, 7 deletions(-) delete mode 100644 src/cmd/go/testdata/testonly/p_test.go delete mode 100644 src/cmd/go/testdata/testonly2/t.go diff --git a/src/cmd/go/testdata/testonly/p_test.go b/src/cmd/go/testdata/testonly/p_test.go deleted file mode 100644 index c89cd18d0f..0000000000 --- a/src/cmd/go/testdata/testonly/p_test.go +++ /dev/null @@ -1 +0,0 @@ -package p diff --git a/src/cmd/go/testdata/testonly2/t.go b/src/cmd/go/testdata/testonly2/t.go deleted file mode 100644 index 82267d32e4..0000000000 --- a/src/cmd/go/testdata/testonly2/t.go +++ /dev/null @@ -1,6 +0,0 @@ -// This package is not a test-only package, -// but it still matches the pattern ./testdata/testonly... when in cmd/go. - -package main - -func main() {} -- 2.50.0