From 3f14f998d64b5fa15bdddd7570b4f72874eb9f29 Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Thu, 8 Jan 2026 00:49:57 +0000 Subject: 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. --- tests/common/purgatory_helpers.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests') 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 // Configure git user for commits run_git(path, &["config", "user.email", "test@example.com"])?; run_git(path, &["config", "user.name", "Test User"])?; + + // Disable GPG signing for tests (prevents yubikey prompts) + run_git(path, &["config", "commit.gpgsign", "false"])?; + run_git(path, &["config", "tag.gpgsign", "false"])?; // Create a file based on variant let (filename, content) = match variant { -- cgit v1.2.3