Skip to content

Commit

Permalink
Add extra log in e2e tests (#5955) (#6019)
Browse files Browse the repository at this point in the history
Signed-off-by: Manuel Buil <[email protected]>
  • Loading branch information
manuelbuil authored May 29, 2024
1 parent 27e72f7 commit 46ce899
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/e2e/testutils.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ func CreateCluster(nodeOS string, serverCount int, agentCount int) ([]string, []
errg, _ := errgroup.WithContext(context.Background())
for _, node := range append(serverNodeNames[1:], agentNodeNames...) {
cmd := fmt.Sprintf(`%s %s vagrant up %s &>> vagrant.log`, nodeEnvs, testOptions, node)
fmt.Println(cmd)
errg.Go(func() error {
if _, err := RunCommand(cmd); err != nil {
return newNodeError(cmd, node, err)
Expand Down Expand Up @@ -432,7 +433,7 @@ func RunCmdOnNode(cmd string, nodename string) (string, error) {

// RunCmdOnWindowsNode executes a command from within the given windows node
func RunCmdOnWindowsNode(cmd string, nodename string) (string, error) {
runcmd := "vagrant ssh -c 'powershell.exe -Command \""+ cmd + "\"' " + nodename
runcmd := "vagrant ssh -c 'powershell.exe -Command \"" + cmd + "\"' " + nodename
return RunCommand(runcmd)
}

Expand Down

0 comments on commit 46ce899

Please sign in to comment.