mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-08 03:33:56 +00:00
e2e: in core dump, add delta to waitgroup outside of goroutine.
This commit is contained in:
parent
b3ab7d8db4
commit
4d52d2f1c1
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user