remove MMGEN_TEST_SUITE env var
This commit is contained in:
parent
6f4dbcbf9c
commit
b2cec385ac
4 changed files with 3 additions and 9 deletions
|
|
@ -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])
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue