fixes, cleanups, comments (minor)
This commit is contained in:
parent
f95e8f7f50
commit
5a7bb6850f
5 changed files with 5 additions and 5 deletions
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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', []),
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue