mirror of
https://github.com/goreleaser/goreleaser.git
synced 2024-12-27 01:33:39 +02:00
test: fix build test
This commit is contained in:
parent
3c55f2bb77
commit
bb438ba34e
@ -242,8 +242,8 @@ func TestRunPipeFailingHooks(t *testing.T) {
|
|||||||
testctx.WithCurrentTag("2.4.5"),
|
testctx.WithCurrentTag("2.4.5"),
|
||||||
testctx.Skip(skips.PreBuildHooks),
|
testctx.Skip(skips.PreBuildHooks),
|
||||||
)
|
)
|
||||||
ctx.Config.Builds[0].Hooks.Pre = []config.Hook{{Cmd: testlib.Echo("pre")}}
|
|
||||||
ctx.Config.Builds[0].Hooks.Pre = []config.Hook{{Cmd: "exit 1"}}
|
ctx.Config.Builds[0].Hooks.Pre = []config.Hook{{Cmd: "exit 1"}}
|
||||||
|
ctx.Config.Builds[0].Hooks.Post = []config.Hook{{Cmd: testlib.Echo("pre")}}
|
||||||
require.NoError(t, Pipe{}.Run(ctx))
|
require.NoError(t, Pipe{}.Run(ctx))
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user