]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: keep WINDIR during TestScript
authorAlex Brainman <alex.brainman@gmail.com>
Sun, 24 Mar 2019 04:49:45 +0000 (15:49 +1100)
committerAlex Brainman <alex.brainman@gmail.com>
Sun, 24 Mar 2019 09:15:09 +0000 (09:15 +0000)
TestScript executes PowerShell. And PowerShell appears to require
WINDIR environment variable to exists on windows-arm.

So keep WINDIR environment variable when running PowerShell.

Fixes #30711

Change-Id: I14dde6614347325a8f3caf994ea8ab05294450a5
Reviewed-on: https://go-review.googlesource.com/c/go/+/168859
Run-TryBot: Alex Brainman <alex.brainman@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/go/script_test.go
src/cmd/go/testdata/script/build_acl_windows.txt

index 9cb5b49d293115f6374b15f905a6f979f247bd3e..7c5dd48340d67860a4e9edbf239bbf570d489dea 100644 (file)
@@ -84,6 +84,7 @@ type backgroundCmd struct {
 
 var extraEnvKeys = []string{
        "SYSTEMROOT",         // must be preserved on Windows to find DLLs; golang.org/issue/25210
+       "WINDIR",             // must be preserved on Windows to be able to run PowerShell command; golang.org/issue/30711
        "LD_LIBRARY_PATH",    // must be preserved on Unix systems to find shared libraries
        "CC",                 // don't lose user settings when invoking cgo
        "GO_TESTING_GOTOOLS", // for gccgo testing
index 21b8879a11488e8b7232ed1e5725c996f3f50a24..13a3ba226aa851bdbaefc76f25b05fc2e4b38368 100644 (file)
@@ -1,5 +1,4 @@
 [!windows] stop
-[arm] skip # TODO(golang.org/issue/30711): Skip broken test.
 [!exec:icacls] skip
 [!exec:powershell] skip