From 35eb844f937d3c18f308b3eff85e1c5abf092f4d Mon Sep 17 00:00:00 2001 From: Carlos A Becker Date: Sun, 21 Nov 2021 15:22:07 -0300 Subject: [PATCH] test: sign with cmd not installed refs #2651 --- internal/pipe/sign/sign_test.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/internal/pipe/sign/sign_test.go b/internal/pipe/sign/sign_test.go index a2b2ee3c2..a5ab57398 100644 --- a/internal/pipe/sign/sign_test.go +++ b/internal/pipe/sign/sign_test.go @@ -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",