diff --git a/post-processor/shell-local/post-processor_test.go b/post-processor/shell-local/post-processor_test.go index 5fabac124..ee7e27d70 100644 --- a/post-processor/shell-local/post-processor_test.go +++ b/post-processor/shell-local/post-processor_test.go @@ -141,7 +141,7 @@ func TestPostProcessorPrepare_ExecuteCommand(t *testing.T) { if runtime.GOOS != "windows" { expected = []string{"/bin/sh", "-c", "{{.Vars}}", "{{.Script}}"} } else { - expected = []string{"cmd", "/C", "{{.Vars}}", "{{.Script}}"} + expected = []string{"cmd", "/V", "/C", "{{.Vars}}", "call", "{{.Script}}"} } if strings.Compare(strings.Join(p.config.ExecuteCommand, " "), strings.Join(expected, " ")) != 0 { t.Fatalf("Did not get expected default: expected: %#v; received %#v", expected, p.config.ExecuteCommand)