mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 06:50:29 +03:00
skip test_find_apksigner_system_package_android_home if no apksigner
This commit is contained in:
parent
d106f9988e
commit
b5485ded64
1 changed files with 2 additions and 0 deletions
|
|
@ -693,6 +693,8 @@ class CommonTest(unittest.TestCase):
|
||||||
android_home = os.getenv('ANDROID_HOME')
|
android_home = os.getenv('ANDROID_HOME')
|
||||||
if not android_home or not os.path.isdir(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)
|
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}
|
fdroidserver.common.config = {'sdk_path': android_home}
|
||||||
os.environ['PATH'] = '/fake/path/to/avoid/conflicts'
|
os.environ['PATH'] = '/fake/path/to/avoid/conflicts'
|
||||||
config = fdroidserver.common.read_config()
|
config = fdroidserver.common.read_config()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue