remove MMGEN_TEST_SUITE env var

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

View file

@ -29,7 +29,7 @@ examples/coin-daemon-info.py:
#
# PYTHONPATH=. examples/coin-daemon-info.py btc ltc eth
import sys, os, asyncio
import sys, asyncio
from mmgen.exception import SocketError
from mmgen.cfg import Config
@ -46,12 +46,11 @@ async def main(coins):
rpcs = {}
cfgs = {}
test_suite = os.getenv('MMGEN_TEST_SUITE')
base_cfg = Config({'pager':True})
for coin in coins:
cfg_in = {'coin': coin}
if coin == 'eth' and not test_suite:
if coin == 'eth' and not Config.test_suite:
cfg_in.update({'daemon_id': 'geth'})
cfgs[coin] = Config(cfg_in)
rpcs[coin] = await get_rpc(cfgs[coin])

View file

@ -136,10 +136,7 @@ class CmdTestInput(CmdTestBase):
'--out-fmt=words',
f'--outdir={trash_dir}']
mn = sample_mn['mmgen']['mn']
run_env = dict(os.environ)
run_env['MMGEN_TEST_SUITE'] = ''
cp = run(cmd, input=mn.encode(), capture_output=True, env=run_env)
cp = run(cmd, input=mn.encode(), capture_output=True)
imsg(cp.stderr.decode().strip())
res = get_data_from_file(

View file

@ -14,7 +14,6 @@ test.include.test_init: Initialization module for test scripts
import sys, os
from pathlib import PurePath
os.environ['MMGEN_TEST_SUITE'] = '1'
repo_root = str(PurePath(*PurePath(__file__).parts[:-3]))
os.chdir(repo_root)
sys.path[0] = repo_root

View file

@ -57,7 +57,6 @@ for k, v in {
Config._env_opts += (
# these are referenced in test suite only, except as noted:
'MMGEN_TEST_SUITE',
'MMGEN_TEST_SUITE_AUTOSIGN_LED_SIMULATE',
'MMGEN_TEST_SUITE_AUTOSIGN_THREADED',
'MMGEN_TEST_SUITE_BOGUS_SEND',