mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-10-03 17:50:11 +02:00
tests: skip disabled_algorithms test when apksigner is present
apksigner doesn't treat MD5 signatures as deprecated, so that portion of the tests would always fail.
This commit is contained in:
parent
a9aa8788e0
commit
a248a69692
@ -625,6 +625,10 @@ class UpdateTest(unittest.TestCase):
|
||||
self.assertFalse(os.path.exists(os.path.join('archive', apkName)))
|
||||
self.assertTrue(os.path.exists(os.path.join('repo', apkName)))
|
||||
|
||||
if os.path.exists('/usr/bin/apksigner') or 'apksigner' in config:
|
||||
print('SKIPPING: apksigner installed and it allows MD5 signatures')
|
||||
return
|
||||
|
||||
javac = config['jarsigner'].replace('jarsigner', 'javac')
|
||||
v = subprocess.check_output([javac, '-version'], stderr=subprocess.STDOUT)[6:-1].decode('utf-8')
|
||||
if LooseVersion(v) < LooseVersion('1.8.0_132'):
|
||||
|
Loading…
Reference in New Issue
Block a user