]> Cypherpunks repositories - gostls13.git/commitdiff
race.bat: fix env setup
authorDmitriy Vyukov <dvyukov@google.com>
Tue, 17 Dec 2013 08:59:13 +0000 (12:59 +0400)
committerDmitriy Vyukov <dvyukov@google.com>
Tue, 17 Dec 2013 08:59:13 +0000 (12:59 +0400)
Currently it fails as:
go tool dist: $GOROOT is not set correctly or not exported
GOROOT=c:\go
c:\go\include\u.h does not exist
Fail.

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/42550044

src/race.bat

index 0a6aee9e2b41eca4a6c2d63f11120c35fb776ec2..65b76cd61a1c9a50449ffb4f641020bd61f59f0a 100644 (file)
@@ -15,6 +15,7 @@ echo race.bat must be run from go\src
 goto end
 :ok
 
+set GOROOT=%CD%\..
 call make.bat --dist-tool >NUL
 if errorlevel 1 goto fail
 .\cmd\dist\dist env -wp >env.bat
@@ -35,7 +36,7 @@ go install -race cmd/cgo
 echo # go install -race std
 go install -race std
 if errorlevel 1 goto fail
-echo # go test -race -short -std
+echo # go test -race -short std
 go test -race -short std
 if errorlevel 1 goto fail
 echo # go test -race -run=nothingplease -bench=.* -benchtime=.1s -cpu=4 std