From 1aab64e090a7540a3b2396fa31d9c1937120bb1b Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Mon, 9 Feb 2026 15:45:23 +0100 Subject: [PATCH] better test for gpg-agent to restrict test case This test case needs both gpg and gpg-agent, but gpg can be installed without gpg-agent. The CI for some of the Ansible stuff needs gpg without gpg-agent, so switch this test to gpg-agent. https://gitlab.com/fdroid/ansible-role-install-fdroidserver-dependencies/-/merge_requests/13 --- tests/test_integration.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_integration.py b/tests/test_integration.py index d051275b..3506c066 100755 --- a/tests/test_integration.py +++ b/tests/test_integration.py @@ -246,7 +246,7 @@ class IntegrationTest(unittest.TestCase): self.fdroid_cmd + ["scanner", "org.fdroid.ci.test.app", "--verbose"] ) - @unittest.skipUnless(shutil.which("gpg"), "requires command line gpg") + @unittest.skipUnless(shutil.which("gpg-agent"), "requires gpg-agent for gpg") def test_copy_repo_generate_java_gpg_keys_update_and_gpgsign(self): """Needs tricks to make gpg-agent run in a test harness.""" self.fdroid_init_with_prebuilt_keystore()