1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-06 03:13:48 +02:00

test: fix broken tests

This commit is contained in:
Carlos Alexandro Becker 2023-09-17 18:11:20 +00:00
parent 491bf50d69
commit 5df77d20a0
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940

View File

@ -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}"},