From 58acb7f436cee34c350ff36e3c4084ee24267221 Mon Sep 17 00:00:00 2001 From: Megan Marsh Date: Wed, 4 Apr 2018 15:52:39 -0700 Subject: [PATCH] fix windows test --- post-processor/shell-local/post-processor_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)