cmdtest.py: win_skip -> platform_skip

This commit is contained in:
The MMGen Project 2024-08-26 13:46:54 +00:00
commit effe001115
Signed by: mmgen
GPG key ID: 3F8B1861E32B7DA2
3 changed files with 4 additions and 10 deletions

View file

@ -660,12 +660,8 @@ class CmdTestRunner:
ct_cls = CmdGroupMgr().load_mod(gname)
if sys.platform == 'win32' and ct_cls.win_skip:
omsg(gray(f'INFO → skipping test {gname!r} (platform=win32)'))
return None
if sys.platform == 'darwin' and ct_cls.mac_skip:
omsg(gray(f'INFO → skipping test {gname!r} (platform=darwin)'))
if sys.platform in ct_cls.platform_skip:
omsg(gray(f'INFO → skipping test {gname!r} for platform {sys.platform!r}'))
return None
for k in ('segwit','segwit_random','bech32'):

View file

@ -53,8 +53,7 @@ class CmdTestAutosignBase(CmdTestBase):
networks = ('btc',)
tmpdir_nums = [18]
color = True
win_skip = True
mac_skip = True
platform_skip = ('win32', 'darwin')
threaded = False
daemon_coins = []

View file

@ -37,8 +37,7 @@ class CmdTestBase:
segwit_opts_ok = False
color = False
need_daemon = False
win_skip = False
mac_skip = False
platform_skip = ()
tmpdir_nums = []
test_name = None