fixes, cleanups, comments (minor)

This commit is contained in:
The MMGen Project 2026-09-15 10:51:04 +00:00
commit 5a7bb6850f
Signed by: mmgen
GPG key ID: 3F8B1861E32B7DA2
5 changed files with 5 additions and 5 deletions

View file

@ -69,7 +69,7 @@ class Autosign:
have_xmr = False
xmr_only = False
def init_fixup(self): # see test/overlay/fakemods/mmgen/autosign.py
def init_fixup(self): # see test/overlay/fakemods/mmgen/autosign/__init__.py
pass
def __init__(self, cfg, *, cmd=None):

View file

@ -260,7 +260,7 @@ class Config(Lockable):
xmrwallet_compat = False
priority = 0
test_suite = False # 13 references
test_suite = False # 14 references - used before lock - do not remove
# external use:
_opts = None

View file

@ -39,7 +39,7 @@ def check_or_create_dir(cfg, path):
try:
os.listdir(path)
except:
if getattr(cfg, 'test_suite', False) and os.path.exists(path): # path is a link or regular file
if cfg.test_suite and os.path.exists(path): # path is a link or regular file
from subprocess import run
run(['rm', '-rf', str(path)])
try:

View file

@ -68,7 +68,7 @@ class CmdTestXMRWallet(CmdTestBase):
dfl_random_txs = 3
color = True
# Bob’s daemon is stopped via process kill, not RPC, so put Bob last in list:
# user sid autosign shift kal_range add_coind_args
# user sid autosign port_shift kal_range add_coind_args
user_data = (
('miner', '98831F3A', False, 130, '1-2', []),
('alice', 'FE3C6545', False, 150, '1-4', []),

View file

@ -25,11 +25,11 @@ for k, v in {
'min_urandchars': 3,
'err_disp_timeout': 0.1,
'short_disp_timeout': 0.1,
'test_suite': True,
### everything below is missing in Config:
# these are referenced in production code:
'test_suite': True,
'test_suite_cfgtest': False, # cfgfile - using getattr() with dfl val - OK
'test_suite_popen_spawn': False, # line_input() - using getattr() with dfl val - OK
'test_suite_hold_protect_disable': False, # init_term() - using getattr() with dfl val - OK