mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-04 22:40:29 +03:00
fix tests to work when only Debian Android SDK is installed
jenkins.debian.net only had `apt install android-sdk`, it does not have any of Google's packages installed.
This commit is contained in:
parent
3d3050d04f
commit
2ee32f3524
1 changed files with 4 additions and 1 deletions
|
|
@ -70,7 +70,10 @@ class CommonTest(unittest.TestCase):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def _find_all(self):
|
def _find_all(self):
|
||||||
for cmd in ('aapt', 'adb', 'android', 'zipalign'):
|
tools = ['aapt', 'adb', 'zipalign']
|
||||||
|
if os.path.exists(os.path.join(os.getenv('ANDROID_HOME'), 'tools', 'android')):
|
||||||
|
tools.append('android')
|
||||||
|
for cmd in tools:
|
||||||
path = fdroidserver.common.find_sdk_tools_cmd(cmd)
|
path = fdroidserver.common.find_sdk_tools_cmd(cmd)
|
||||||
if path is not None:
|
if path is not None:
|
||||||
self.assertTrue(os.path.exists(path))
|
self.assertTrue(os.path.exists(path))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue