skip SystemWebView-repack.apk test when file is missing

This commit is contained in:
Hans-Christoph Steiner 2022-11-15 22:08:33 +01:00
parent 4f7563b270
commit c30c381c01
No known key found for this signature in database
GPG key ID: 3E177817BA1B9BFA

View file

@ -870,6 +870,9 @@ class CommonTest(unittest.TestCase):
self.assertFalse(os.path.isfile(unsigned)) self.assertFalse(os.path.isfile(unsigned))
self.assertTrue(fdroidserver.common.verify_apk_signature(signed)) self.assertTrue(fdroidserver.common.verify_apk_signature(signed))
@unittest.skipUnless(
os.path.exists('tests/SystemWebView-repack.apk'), "file too big for sdist"
)
def test_resign_apk(self): def test_resign_apk(self):
"""When using apksigner, it should resign signed APKs""" """When using apksigner, it should resign signed APKs"""
config = fdroidserver.common.read_config(fdroidserver.common.options) config = fdroidserver.common.read_config(fdroidserver.common.options)