Verified Commit b5485ded authored by Hans-Christoph Steiner's avatar Hans-Christoph Steiner
Browse files

skip test_find_apksigner_system_package_android_home if no apksigner

parent d106f998
Pipeline #275298535 passed with stage
in 14 minutes and 7 seconds
......@@ -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()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment