mirror of
https://github.com/f-droid/fdroidserver.git
synced 2026-02-15 01:53:29 -05:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user