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 e157fac commit 45a4609Copy full SHA for 45a4609
src/cmd/dist/test.go
@@ -447,6 +447,17 @@ func (t *tester) registerTests() {
447
t.runPending(dt)
448
moved := t.goroot + "-moved"
449
if err := os.Rename(t.goroot, moved); err != nil {
450
+ if t.goos == "windows" {
451
+ // Fails on Windows (with "Access is denied") if a process
452
+ // or binary is in this directory. For instance, using all.bat
453
+ // when run from c:\workdir\go\src fails here
454
+ // if GO_BUILDER_NAME is set. Our builders invoke tests
455
+ // a different way which happens to work when sharding
456
+ // tests, but we should be tolerant of the non-sharded
457
+ // all.bat case.
458
+ log.Printf("skipping test on Windows")
459
+ return nil
460
+ }
461
return err
462
}
463
0 commit comments