try all args in one string for powershell
parent
8a425f85db
commit
73150f9fdf
|
@ -840,7 +840,7 @@ func validateSSHCmd(ctx context.Context, t *testing.T, profile string) {
|
|||
var rr *RunResult
|
||||
var err error
|
||||
if runtime.GOOS == "windows" { // golang exec powershell needs some tricks !
|
||||
cmd := exec.CommandContext(ctx, Target(), "-p", profile, "ssh", "cat /etc/hostname")
|
||||
cmd := exec.CommandContext(ctx, Target(), "-p profile ssh cat /etc/hostname")
|
||||
t.Logf("about to run %s: ", cmd.Args)
|
||||
rr, err = Run(t, cmd, true)
|
||||
t.Logf("rr is %+v: \n", rr)
|
||||
|
|
Loading…
Reference in New Issue