mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Actually run multiple tool tests in golang runtime test suite.
Using the '\|' delimiter to separate multiple go tool tests ends up not running any test. Just using '|' works. Reported-by: Nicolas Lacasse <nlacasse@google.com> Investigated-by: Andrei Vagin <avagin@gmail.com> Fixed-by: Andrei Vagin <avagin@gmail.com> PiperOrigin-RevId: 523601890
This commit is contained in:
@@ -87,7 +87,7 @@ func (goRunner) TestCmds(tests []string) []*exec.Cmd {
|
||||
|
||||
var cmds []*exec.Cmd
|
||||
if len(toolTests) > 0 {
|
||||
cmds = append(cmds, exec.Command("go", "tool", "dist", "test", "-v", "-no-rebuild", "-run", strings.Join(toolTests, "\\|")))
|
||||
cmds = append(cmds, exec.Command("go", "tool", "dist", "test", "-v", "-no-rebuild", "-run", strings.Join(toolTests, "|")))
|
||||
}
|
||||
if len(onDiskTests) > 0 {
|
||||
cmd := exec.Command("go", append([]string{"run", "run.go", "-v", "--"}, onDiskTests...)...)
|
||||
|
||||
Reference in New Issue
Block a user