]> Cypherpunks repositories - gostls13.git/commit
cmd/go: convert TestRunInternal to the script test framework
authorMichael Matloob <matloob@golang.org>
Mon, 30 Dec 2019 21:56:00 +0000 (16:56 -0500)
committerMichael Matloob <matloob@golang.org>
Fri, 3 Jan 2020 19:05:59 +0000 (19:05 +0000)
commit421cefdc59fe4797a75558860964e76b4d9befbd
tree1a31f6e0a90c9e4440638ddc394e2a0fc9888ed0
parentc57665f4e62d713e3f4c20c3e8ea075f712b1c65
cmd/go: convert TestRunInternal to the script test framework

This conversion is a bit weird, because the original test runs in the cmd/go
directory, while the script test runs in the GOPATH directory. So even though
it's not necessary for the new test, it changes dircectory to $WORK, so that
its error message regexp can have four components like the original, just
changing the old gopath directory 'testdata' the new one 'gopath'.

Part of converting all tests to script framework to improve test parallelism.

Updates #36320
Updates #17751

Change-Id: Ie5b029c43dc22167278d3104b37c0b57c61326be
Reviewed-on: https://go-review.googlesource.com/c/go/+/212814
Run-TryBot: Michael Matloob <matloob@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Jay Conrod <jayconrod@google.com>
src/cmd/go/go_test.go
src/cmd/go/testdata/script/run_internal.txt [moved from src/cmd/go/testdata/script/mod_run_internal.txt with 52% similarity]
src/cmd/go/testdata/src/run/bad.go [deleted file]
src/cmd/go/testdata/src/run/good.go [deleted file]
src/cmd/go/testdata/src/run/internal/internal.go [deleted file]
src/cmd/go/testdata/src/run/subdir/internal/private/private.go [deleted file]