From b2cec385ac355619a9fc5dfd8163f24019e23994 Mon Sep 17 00:00:00 2001 From: The MMGen Project Date: Tue, 15 Sep 2026 10:51:04 +0000 Subject: [PATCH] remove `MMGEN_TEST_SUITE` env var --- examples/coin-daemon-info.py | 5 ++--- test/cmdtest_d/input.py | 5 +---- test/include/test_init.py | 1 - test/overlay/fakemods/mmgen/cfg.py | 1 - 4 files changed, 3 insertions(+), 9 deletions(-) diff --git a/examples/coin-daemon-info.py b/examples/coin-daemon-info.py index 8fd6f059..1542c699 100755 --- a/examples/coin-daemon-info.py +++ b/examples/coin-daemon-info.py @@ -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]) diff --git a/test/cmdtest_d/input.py b/test/cmdtest_d/input.py index 5b5b3a5a..76389210 100755 --- a/test/cmdtest_d/input.py +++ b/test/cmdtest_d/input.py @@ -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( diff --git a/test/include/test_init.py b/test/include/test_init.py index b841b360..1c8e53ef 100755 --- a/test/include/test_init.py +++ b/test/include/test_init.py @@ -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 diff --git a/test/overlay/fakemods/mmgen/cfg.py b/test/overlay/fakemods/mmgen/cfg.py index 9e48617f..75365639 100644 --- a/test/overlay/fakemods/mmgen/cfg.py +++ b/test/overlay/fakemods/mmgen/cfg.py @@ -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',