Skip to content

Commit e1e7763

Browse files
committed
Do not attempt to sign commits in tests
Signed-off-by: Danny Kopping <danny@coder.com>
1 parent e14f8fb commit e1e7763

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

cli/dotfiles_test.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ func TestDotfiles(t *testing.T) {
3737
err = c.Run()
3838
require.NoError(t, err)
3939

40-
c = exec.Command("git", "commit", "-m", `"add .bashrc"`)
40+
c = exec.Command("git", "commit", "-m", `"add .bashrc"`, `--no-gpg-sign`)
4141
c.Dir = testRepo
4242
out, err := c.CombinedOutput()
4343
require.NoError(t, err, string(out))
@@ -64,7 +64,7 @@ func TestDotfiles(t *testing.T) {
6464
err = c.Run()
6565
require.NoError(t, err)
6666

67-
c = exec.Command("git", "commit", "-m", `"add .bashrc"`)
67+
c = exec.Command("git", "commit", "-m", `"add .bashrc"`, `--no-gpg-sign`)
6868
c.Dir = testRepo
6969
out, err := c.CombinedOutput()
7070
require.NoError(t, err, string(out))
@@ -95,7 +95,7 @@ func TestDotfiles(t *testing.T) {
9595
err = c.Run()
9696
require.NoError(t, err)
9797

98-
c = exec.Command("git", "commit", "-m", `"add .bashrc"`)
98+
c = exec.Command("git", "commit", "-m", `"add .bashrc"`, `--no-gpg-sign`)
9999
c.Dir = testRepo
100100
out, err := c.CombinedOutput()
101101
require.NoError(t, err, string(out))
@@ -129,7 +129,7 @@ func TestDotfiles(t *testing.T) {
129129
err = c.Run()
130130
require.NoError(t, err)
131131

132-
c = exec.Command("git", "commit", "-m", `"add install.sh"`)
132+
c = exec.Command("git", "commit", "-m", `"add install.sh"`, `--no-gpg-sign`)
133133
c.Dir = testRepo
134134
err = c.Run()
135135
require.NoError(t, err)
@@ -151,7 +151,7 @@ func TestDotfiles(t *testing.T) {
151151
testRepo := testGitRepo(t, root)
152152

153153
// We need an initial commit to start the `main` branch
154-
c := exec.Command("git", "commit", "--allow-empty", "-m", `"initial commit"`)
154+
c := exec.Command("git", "commit", "--allow-empty", "-m", `"initial commit"`, `--no-gpg-sign`)
155155
c.Dir = testRepo
156156
err := c.Run()
157157
require.NoError(t, err)
@@ -170,7 +170,7 @@ func TestDotfiles(t *testing.T) {
170170
err = c.Run()
171171
require.NoError(t, err)
172172

173-
c = exec.Command("git", "commit", "-m", `"add install.sh"`)
173+
c = exec.Command("git", "commit", "-m", `"add install.sh"`, `--no-gpg-sign`)
174174
c.Dir = testRepo
175175
err = c.Run()
176176
require.NoError(t, err)
@@ -207,7 +207,7 @@ func TestDotfiles(t *testing.T) {
207207
err = c.Run()
208208
require.NoError(t, err)
209209

210-
c = exec.Command("git", "commit", "-m", `"add .bashrc"`)
210+
c = exec.Command("git", "commit", "-m", `"add .bashrc"`, `--no-gpg-sign`)
211211
c.Dir = testRepo
212212
out, err := c.CombinedOutput()
213213
require.NoError(t, err, string(out))

0 commit comments

Comments
 (0)