diff --git a/tests/e2e/util.go b/tests/e2e/util.go index 652bff06b2..57ce9310b3 100644 --- a/tests/e2e/util.go +++ b/tests/e2e/util.go @@ -7080,7 +7080,7 @@ func execCommandOnGcWorker(sshClientConfig *ssh.ClientConfig, svcMasterIP string } cmdToGetContainerInfo := fmt.Sprintf("ssh -o StrictHostKeyChecking=no -i key %s@%s "+ - "'%s'> >(grep -v 'Warning' >&2)", gcNodeUser, gcWorkerIp, cmd) + "'%s' | grep -v 'Warning'", gcNodeUser, gcWorkerIp, cmd) framework.Logf("Invoking command '%v' on host %v", cmdToGetContainerInfo, svcMasterIP) cmdResult, err = sshExec(sshClientConfig, svcMasterIP,