Commit dae03043 authored by Saad Ali's avatar Saad Ali

Merge pull request #9732 from ixdy/e2e-coredump

e2e: in core dump, add delta to waitgroup outside of goroutine
parents 6674913f 4d52d2f1
......@@ -75,10 +75,9 @@ func logCore(cmds []command, hosts []string, dir, provider string) {
for _, cmd := range cmds {
fmt.Printf("SSH'ing to all nodes and running %s\n", cmd.cmd)
for _, host := range hosts {
wg.Add(1)
go func() {
defer wg.Done()
wg.Add(1)
logfile := fmt.Sprintf("%s/%s-%s.log", dir, host, cmd.component)
fmt.Printf("Writing to %s.\n", logfile)
stdout, stderr, _, err := SSH(cmd.cmd, host, provider)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment