mirror of https://github.com/golang/go.git
This change both simplifies the options used to configure workspace folders in regtests, and allows for configuring multiple workspace folders. The WithoutWorkspaceFolders, RootPath, and NestWorkdir options are all replaced by a single WorkspaceFolders option. NestWorkdir was always a bit too magical, modifying the execution directory within the runner itself. Instead, just explicitly move files down into a nested directory. runModfileTests was also a bit too much of a special case. Eliminate it by adding functionality to run multiple times with different options. Upon the way I started using literals to configure runs, and I think this is cleaner. Let me know what you think about runMultiple, etc. This overlaps with the execution modes, which could probably be eliminated in a later CL. For golang/go#42111 Change-Id: I56915d8930bc47561cc827b918621cff4b994226 Reviewed-on: https://go-review.googlesource.com/c/tools/+/276975 Run-TryBot: Robert Findley <rfindley@google.com> gopls-CI: kokoro <noreply+kokoro@google.com> TryBot-Result: Go Bot <gobot@golang.org> Trust: Robert Findley <rfindley@google.com> Reviewed-by: Heschi Kreinick <heschi@google.com> Reviewed-by: Rebecca Stambler <rstambler@golang.org> |
||
|---|---|---|
| .. | ||
| analysisinternal | ||
| apidiff | ||
| event | ||
| fakenet | ||
| fastwalk | ||
| gocommand | ||
| gopathwalk | ||
| imports | ||
| jsonrpc2 | ||
| lsp | ||
| memoize | ||
| packagesinternal | ||
| proxydir | ||
| span | ||
| stack | ||
| testenv | ||
| tool | ||
| typesinternal | ||
| xcontext | ||