minor fixes
This commit is contained in:
parent
afd2a00988
commit
60003eac25
4 changed files with 8 additions and 4 deletions
|
|
@ -341,7 +341,7 @@ def get_cmd_cls(cmd):
|
|||
def get_mod_cls(modname):
|
||||
return getattr(importlib.import_module(f'mmgen.tool.{modname}'),'tool_cmd')
|
||||
|
||||
if gc.prog_name == 'mmgen-tool':
|
||||
if gc.prog_name.endswith('-tool'):
|
||||
|
||||
cfg = Config( opts_data=opts_data, parse_only=True )
|
||||
po = cfg._parsed_opts
|
||||
|
|
|
|||
|
|
@ -92,6 +92,7 @@ class CmdTestAutosignAutomount(CmdTestAutosignThreaded, CmdTestRegtestBDBWallet)
|
|||
+ [f'{self.burn_addr},1.23456', f'{sid}:{chg_addr}'],
|
||||
exit_val = exit_val or None)
|
||||
if exit_val:
|
||||
t.expect(expect)
|
||||
t.read()
|
||||
self.remove_device_online()
|
||||
return t
|
||||
|
|
|
|||
|
|
@ -83,6 +83,7 @@ class CmdTestAutosignETH(CmdTestAutosignThreaded, CmdTestEthdev):
|
|||
t = self.txcreate(
|
||||
args = ['--autosign', '98831F3A:E:11,54.321'],
|
||||
menu = [],
|
||||
print_listing = False,
|
||||
acct = '1')
|
||||
t.read()
|
||||
self.remove_device_online()
|
||||
|
|
|
|||
|
|
@ -637,11 +637,13 @@ class CmdTestEthdev(CmdTestBase,CmdTestShared):
|
|||
interactive_fee = '50G',
|
||||
fee_info_data = ('0.00105','50'),
|
||||
no_read = False,
|
||||
print_listing = True,
|
||||
tweaks = []):
|
||||
fee_info_pat = r'\D{}\D.*{c} .*\D{}\D.*gas price in Gwei'.format( *fee_info_data, c=self.proto.coin )
|
||||
t = self.spawn('mmgen-'+caller, self.txcreate_args + ['-B'] + args)
|
||||
t.expect(r'add \[l\]abel, .*?:.','p', regex=True)
|
||||
t.written_to_file('Account balances listing')
|
||||
if print_listing:
|
||||
t.expect(r'add \[l\]abel, .*?:.','p', regex=True)
|
||||
t.written_to_file('Account balances listing')
|
||||
t = self.txcreate_ui_common(
|
||||
t,
|
||||
menu = menu,
|
||||
|
|
@ -698,7 +700,7 @@ class CmdTestEthdev(CmdTestBase,CmdTestShared):
|
|||
dt = namedtuple('data',['devkey_fn','dest','amt'])
|
||||
d = dt( parity_devkey_fn, burn_addr2, '1' )
|
||||
t = self.txcreate(
|
||||
args = [
|
||||
args = self.eth_args_noquiet + [
|
||||
f'--keys-from-file={joinpath(self.tmpdir,d.devkey_fn)}',
|
||||
f'{d.dest},{d.amt}',
|
||||
],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue