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. --- src/git/mod.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/git/mod.rs') diff --git a/src/git/mod.rs b/src/git/mod.rs index 205e3bc..b3fee69 100644 --- a/src/git/mod.rs +++ b/src/git/mod.rs @@ -535,6 +535,17 @@ mod tests { .current_dir(&work_dir) .output() .unwrap(); + // Disable GPG signing for tests (prevents yubikey prompts) + Command::new("git") + .args(["config", "commit.gpgsign", "false"]) + .current_dir(&work_dir) + .output() + .unwrap(); + Command::new("git") + .args(["config", "tag.gpgsign", "false"]) + .current_dir(&work_dir) + .output() + .unwrap(); // Create a file and commit fs::write(work_dir.join("README.md"), "# Test").unwrap(); -- cgit v1.2.3