upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2026-01-08 00:49:57 +0000
committerDanConwayDev <DanConwayDev@protonmail.com>2026-01-08 00:49:57 +0000
commit3f14f998d64b5fa15bdddd7570b4f72874eb9f29 (patch)
tree9bfc5361d457d770033820ef770eb261abe910c8 /tests
parent5833c9bdf815699838a0445f750b99b26fd4a3bd (diff)
test: disable GPG signing in all test helpers
Prevent GPG signing prompts (including Yubikey activation) during test runs by explicitly disabling commit.gpgsign and tag.gpgsign in all test repository creation helpers. Modified: - tests/common/purgatory_helpers.rs: create_test_repo_with_commit() - src/git/mod.rs: create_test_repo_with_commit() - src/purgatory/helpers.rs: create_test_repo_with_commit() All test repositories now have GPG signing disabled regardless of global git configuration.
Diffstat (limited to 'tests')
-rw-r--r--tests/common/purgatory_helpers.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/common/purgatory_helpers.rs b/tests/common/purgatory_helpers.rs
index fa1be73..125f485 100644
--- a/tests/common/purgatory_helpers.rs
+++ b/tests/common/purgatory_helpers.rs
@@ -51,6 +51,10 @@ pub fn create_test_repo_with_commit(path: &Path, variant: CommitVariant) -> Resu
51 // Configure git user for commits 51 // Configure git user for commits
52 run_git(path, &["config", "user.email", "test@example.com"])?; 52 run_git(path, &["config", "user.email", "test@example.com"])?;
53 run_git(path, &["config", "user.name", "Test User"])?; 53 run_git(path, &["config", "user.name", "Test User"])?;
54
55 // Disable GPG signing for tests (prevents yubikey prompts)
56 run_git(path, &["config", "commit.gpgsign", "false"])?;
57 run_git(path, &["config", "tag.gpgsign", "false"])?;
54 58
55 // Create a file based on variant 59 // Create a file based on variant
56 let (filename, content) = match variant { 60 let (filename, content) = match variant {