From 5df77d20a09557506b5592f9507267f98d963d3a Mon Sep 17 00:00:00 2001 From: Carlos Alexandro Becker Date: Sun, 17 Sep 2023 18:11:20 +0000 Subject: [PATCH] test: fix broken tests --- internal/pipe/universalbinary/universalbinary_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/pipe/universalbinary/universalbinary_test.go b/internal/pipe/universalbinary/universalbinary_test.go index 74a8d992f..ea13e613f 100644 --- a/internal/pipe/universalbinary/universalbinary_test.go +++ b/internal/pipe/universalbinary/universalbinary_test.go @@ -346,6 +346,8 @@ func TestRun(t *testing.T) { t.Run("hook with env tmpl", func(t *testing.T) { ctx := ctx5 + ctx.Skips[string(skips.PostBuildHooks)] = false + ctx.Skips[string(skips.PreBuildHooks)] = false ctx.Config.UniversalBinaries[0].Hooks.Pre = []config.Hook{{ Cmd: "echo {{.Env.FOO}}", Env: []string{"FOO=foo-{{.Tag}}"}, @@ -356,6 +358,8 @@ func TestRun(t *testing.T) { t.Run("hook with bad env tmpl", func(t *testing.T) { ctx := ctx5 + ctx.Skips[string(skips.PostBuildHooks)] = false + ctx.Skips[string(skips.PreBuildHooks)] = false ctx.Config.UniversalBinaries[0].Hooks.Pre = []config.Hook{{ Cmd: "echo blah", Env: []string{"FOO=foo-{{.Tag}"},