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
This commit is contained in:
Hans-Christoph Steiner
2026-02-09 15:45:23 +01:00
parent b18c146839
commit 1aab64e090

View File

@@ -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()