]> Cypherpunks repositories - gostls13.git/commit
runtime: fix TestLldbPython in module mode (again)
authorJosh Bleecher Snyder <josharian@gmail.com>
Thu, 28 Mar 2019 19:50:47 +0000 (12:50 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Thu, 28 Mar 2019 23:49:00 +0000 (23:49 +0000)
commitd2cb5b78e0783e142f16dd399339b35be14f8fd9
treef399c7f04a05bfbe47d07ad888d3278eed55f699
parentb3e2da629abc5a569a6bfa09f8077f57791ac857
runtime: fix TestLldbPython in module mode (again)

When run with GOPATH=/dev/null, go build fails:

$ GOPATH=/dev/null go test -run=TestLldbPython -v -count=1 runtime
=== RUN   TestLldbPython
--- FAIL: TestLldbPython (0.21s)
    runtime-lldb_test.go:169: building source exit status 1
        go: failed to create cache directory /dev/null/pkg/mod/cache: mkdir /dev/null: not a directory
FAIL
FAIL runtime 0.220s

But run.bash sets GOPATH=/dev/null.

Fix this by setting GOPATH to the empty string before passing to 'go build'.

Fixes #31100

Change-Id: I573c4755d209e0c3eb26c20d4f7870c2961f2782
Reviewed-on: https://go-review.googlesource.com/c/go/+/169918
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
src/runtime/runtime-lldb_test.go