We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a48f9c2 commit 199fbd4Copy full SHA for 199fbd4
src/cmd/internal/testdir/testdir_test.go
@@ -117,6 +117,15 @@ func Test(t *testing.T) {
117
runoutputGate: make(chan bool, *runoutputLimit),
118
}
119
120
+ // cmd/distpack deletes GOROOT/test, so skip the test if it isn't present.
121
+ // cmd/distpack also requires GOROOT/VERSION to exist, so use that to
122
+ // suppress false-positive skips.
123
+ if _, err := os.Stat(common.gorootTestDir); os.IsNotExist(err) {
124
+ if _, err := os.Stat(filepath.Join(testenv.GOROOT(t), "VERSION")); err == nil {
125
+ t.Skipf("skipping: GOROOT/test not present")
126
+ }
127
128
+
129
for _, dir := range dirs {
130
for _, goFile := range goFiles(t, dir) {
131
test := test{testCommon: common, dir: dir, goFile: goFile}
0 commit comments