cmdtest.py: set command-specific Config attrs in script

This commit is contained in:
The MMGen Project 2026-09-13 15:50:14 +00:00
commit 550b1437ff
Signed by: mmgen
GPG key ID: 3F8B1861E32B7DA2
2 changed files with 10 additions and 6 deletions

View file

@ -281,12 +281,6 @@ class Config(Lockable):
test_suite_popen_spawn = False
test_suite_root_pfx = ''
test_suite_xmr_autosign = False
no_daemon_autostart = False
names = False
no_timings = False
exit_after = ''
resuming = False
skipping_deps = False
test_datadir = os.path.join('test', 'tmp', 'data_dir')
# external use:

View file

@ -86,6 +86,16 @@ from mmgen.cfg import Config, gc
from mmgen.color import red, yellow, blue, init_color
from mmgen.util import Msg, rmsg, die
for k, v in {
'no_daemon_autostart': False,
'names': False,
'no_timings': False,
'exit_after': '',
'resuming': False,
'skipping_deps': False,
}.items():
setattr(Config, k, v)
from test.include.common import (
set_globals,
cmdtest_py_log_fn,