From 6e918c4bd3cf8a8151747291d5d6413ddda55271 Mon Sep 17 00:00:00 2001 From: Chris Gilmer Date: Tue, 11 Aug 2020 15:01:05 -0700 Subject: [PATCH] Update test for builder output --- command/build_test.go | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/command/build_test.go b/command/build_test.go index 5391499d7..735f243d4 100644 --- a/command/build_test.go +++ b/command/build_test.go @@ -336,13 +336,11 @@ func Test_build_output(t *testing.T) { {[]string{"build", "--color=false", testFixture("hcl", "reprepare", "shell-local.pkr.hcl")}, nil, ` null.example: hello from the NULL builder packeruser -Build 'null.example' finished. -`, "posix"}, +Build 'null.example' finished after`, "posix"}, {[]string{"build", "--color=false", testFixture("hcl", "reprepare", "shell-local-windows.pkr.hcl")}, nil, ` null.example: hello from the NULL builder packeruser -Build 'null.example' finished. -`, "windows"}, +Build 'null.example' finished after`, "windows"}, } for _, tc := range tc { @@ -357,7 +355,7 @@ Build 'null.example' finished. t.Fatalf("%v: %s", err, bs) } if !strings.Contains(string(bs), tc.expected) { - t.Fatalf("Should have given output %s.\nReceived: %s", tc.expected, string(bs)) + t.Fatalf("Should contain output %s.\nReceived: %s", tc.expected, string(bs)) } }) }