From ce1b34e06035dd7cc0cc24a449e71c6ba6481a1c Mon Sep 17 00:00:00 2001 From: Manuel Buil Date: Tue, 28 May 2024 12:25:40 +0200 Subject: [PATCH] Add extra log in e2e tests (#5955) Signed-off-by: Manuel Buil --- tests/e2e/testutils.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/e2e/testutils.go b/tests/e2e/testutils.go index 628577e940..60f4c89f76 100644 --- a/tests/e2e/testutils.go +++ b/tests/e2e/testutils.go @@ -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) @@ -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) }