From b5485ded645f7e4c945993b02ccbdf0ea3077e5f Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Tue, 23 Mar 2021 23:09:51 +0100 Subject: [PATCH] skip test_find_apksigner_system_package_android_home if no apksigner --- tests/common.TestCase | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/common.TestCase b/tests/common.TestCase index 409dceda..37d2d7ad 100755 --- a/tests/common.TestCase +++ b/tests/common.TestCase @@ -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()