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:
Ayush Ranjan
2023-04-11 22:08:33 -07:00
committed by gVisor bot
parent e64fa26613
commit eed95da275
+1 -1
View File
@@ -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...)...)