cmdtest.py: set command-specific Config attrs in script
This commit is contained in:
parent
53b4429525
commit
550b1437ff
2 changed files with 10 additions and 6 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue