checkupdates: skip test_get_upstream_main_branch on macOS

This test checks the detection of the default initial branch. It is a hard
thing to test since different platform configurations have different
defaults.  checkupdates is basically only used on GNU/Linux anyway.

Here's the failure:
https://gitlab.com/fdroid/fdroidserver/-/jobs/8896420261
This commit is contained in:
Hans-Christoph Steiner 2025-01-20 15:37:54 +01:00
parent 594099a10c
commit 9b5a67340e

View file

@ -2,6 +2,7 @@
import git import git
import os import os
import platform
import shutil import shutil
import tempfile import tempfile
import time import time
@ -490,6 +491,10 @@ class CheckupdatesTest(unittest.TestCase):
fdroidserver.checkupdates.main() fdroidserver.checkupdates.main()
sys_exit.assert_not_called() sys_exit.assert_not_called()
@unittest.skipIf(
platform.system() == 'Darwin',
'It is difficult to configure the base system for this test.',
)
def test_get_upstream_main_branch(self): def test_get_upstream_main_branch(self):
os.chdir(self.testdir.name) os.chdir(self.testdir.name)
testvalue = 'foo' testvalue = 'foo'