skip tests on Windows that need bash

This commit is contained in:
Hans-Christoph Steiner 2021-06-14 20:53:14 +02:00
parent 1f5534d060
commit 36849b2fba
No known key found for this signature in database
GPG Key ID: 3E177817BA1B9BFA
2 changed files with 2 additions and 0 deletions

View File

@ -332,6 +332,7 @@ class CommonTest(unittest.TestCase):
re.search('android:versionCode="%s"' % build.versionCode, filedata)
)
@unittest.skipIf(os.name == 'nt', "`fdroid build` assumes POSIX scripting")
def test_prepare_sources_with_prebuild_subdir(self):
testdir = tempfile.mkdtemp(
prefix=inspect.currentframe().f_code.co_name, dir=self.tmpdir

View File

@ -54,6 +54,7 @@ class InitTest(unittest.TestCase):
config = fdroidserver.common.read_config(fdroidserver.common.options)
self.assertIsNone(config.get('keypass'))
@unittest.skipIf(os.name == 'nt', "calling main() like this hangs on Windows")
def test_main_in_empty_dir(self):
"""Test that `fdroid init` will find apksigner and add it to the config"""
testdir = tempfile.mkdtemp(