1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-11-06 09:09:29 +02:00

test: sign with cmd not installed

refs #2651
This commit is contained in:
Carlos A Becker
2021-11-21 15:22:07 -03:00
parent dd1db26459
commit 35eb844f93

View File

@@ -91,6 +91,20 @@ func TestSignArtifacts(t *testing.T) {
expectedErrMsg string
user string
}{
{
desc: "sign cmd not found",
expectedErrMsg: `sign: not-a-valid-cmd failed: exec: "not-a-valid-cmd": executable file not found in $PATH: `,
ctx: context.New(
config.Project{
Signs: []config.Sign{
{
Artifacts: "all",
Cmd: "not-a-valid-cmd",
},
},
},
),
},
{
desc: "sign errors",
expectedErrMsg: "sign: exit failed",