1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-19 21:30:10 +01:00

set skipUnless for test that relies on ANDROID_HOME

This job just started failing, but wasn't before:
https://gitlab.com/eighthave/fdroidserver/-/jobs/4060582594

But I look at it, and it looks right that it fails.  So how on earth
was it succeeding before?  Basically the `os.getenv('ANDROID_HOME')`
returns `None` when `ANDROID_HOME` is not set. It is not set in both the
jobs, so how did it not stacktrace before?
This commit is contained in:
Hans-Christoph Steiner 2023-04-04 22:41:41 +02:00
parent 7c85afc988
commit 94badac317

View File

@ -129,6 +129,7 @@ class CommonTest(unittest.TestCase):
except fdroidserver.exception.FDroidException: except fdroidserver.exception.FDroidException:
pass pass
@unittest.skipUnless(os.getenv('ANDROID_HOME'), "Needs ANDROID_HOME env var")
def test_find_sdk_tools_cmd(self): def test_find_sdk_tools_cmd(self):
fdroidserver.common.config = dict() fdroidserver.common.config = dict()
# TODO add this once everything works without sdk_path set in config # TODO add this once everything works without sdk_path set in config