pull/8265/head
Medya Gh 2020-05-27 00:23:43 -07:00
parent 12e911cc1c
commit bfbc39a89d
No known key found for this signature in database
GPG Key ID: 7CF7792C6DF3245C
1 changed files with 2 additions and 2 deletions

View File

@ -859,7 +859,7 @@ func validateSSHCmd(ctx context.Context, t *testing.T, profile string) {
var rr *RunResult
var err error
if runtime.GOOS == "windows" {
rr, err = Run(t, exec.CommandContext(ctx, Target(), "-p", profile, "ssh", "pwd"), true)
rr, err = Run(t, exec.CommandContext(ctx, Target()+" -p "+profile+" ssh pwd"), true)
} else {
rr, err = Run(t, exec.CommandContext(ctx, Target(), "-p", profile, "ssh", "pwd"))
}
@ -879,7 +879,7 @@ func validateSSHCmd(ctx context.Context, t *testing.T, profile string) {
want = profile + "\n"
if runtime.GOOS == "windows" {
rr, err = Run(t, exec.CommandContext(ctx, Target(), "-p", profile, "ssh", "cat /etc/hostname"), true)
rr, err = Run(t, exec.CommandContext(ctx, Target()+" -p "+profile+" ssh cat /etc/hostname"), true)
} else {
rr, err = Run(t, exec.CommandContext(ctx, Target(), "-p", profile, "ssh", "cat /etc/hostname"))
}