From 550b1437ff45f61d9cfed900251b5efd4eb5a133 Mon Sep 17 00:00:00 2001 From: The MMGen Project Date: Sun, 13 Sep 2026 15:50:14 +0000 Subject: [PATCH] cmdtest.py: set command-specific Config attrs in script --- mmgen/cfg.py | 6 ------ test/cmdtest.py | 10 ++++++++++ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/mmgen/cfg.py b/mmgen/cfg.py index f89550b1..93b73b31 100755 --- a/mmgen/cfg.py +++ b/mmgen/cfg.py @@ -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: diff --git a/test/cmdtest.py b/test/cmdtest.py index 6424828a..2c9dbbd1 100755 --- a/test/cmdtest.py +++ b/test/cmdtest.py @@ -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,