mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-10-03 17:50:11 +02:00
skip test_find_apksigner_system_package_android_home if no apksigner
This commit is contained in:
parent
d106f9988e
commit
b5485ded64
@ -693,6 +693,8 @@ class CommonTest(unittest.TestCase):
|
||||
android_home = os.getenv('ANDROID_HOME')
|
||||
if not android_home or not os.path.isdir(android_home):
|
||||
self.skipTest('SKIPPING since ANDROID_HOME (%s) is not a dir!' % android_home)
|
||||
if not glob.glob(os.path.join(android_home, 'build-tools', '*', 'apksigner')):
|
||||
self.skipTest('SKIPPING since ANDROID_HOME (%s) build-tools has no apksigner!' % android_home)
|
||||
fdroidserver.common.config = {'sdk_path': android_home}
|
||||
os.environ['PATH'] = '/fake/path/to/avoid/conflicts'
|
||||
config = fdroidserver.common.read_config()
|
||||
|
Loading…
Reference in New Issue
Block a user