cmdtest.py autosign_automount: add XMR TX file to removable device

This commit is contained in:
The MMGen Project 2026-09-11 14:10:55 +00:00
commit 7bd098fd61
Signed by: mmgen
GPG key ID: 3F8B1861E32B7DA2
4 changed files with 8 additions and 5 deletions

View file

@ -112,7 +112,7 @@ class CmdTestAutosignAutomount(CmdTestAutosignThreaded, CmdTestRegtest):
def add_legacy_txfiles(self):
self.spawn(msg_only=True)
self.tx_file_ops('copy', txfile_coins=['btc'], tx_dir='txauto_dir')
self.tx_file_ops('copy', txfile_coins=['btc', 'xmr'], tx_dir='txauto_dir')
return 'ok'
async def txview_allow_legacy(self):

View file

@ -64,7 +64,8 @@ class CmdTestAutosignBase(CmdTestBase):
('ltc', 'litecoin'),
('eth', 'ethereum'),
('mm1', 'ethereum'),
('etc', 'ethereum_classic'))
('etc', 'ethereum_classic'),
('xmr', 'monero'))
def __init__(self, cfg, trunner, cfgs, spawn):

View file

@ -330,8 +330,10 @@ class CmdTestRefTX(CmdTestRef):
'6BDB25-MM1[1.23456,50000].testnet.rawtx'
),
'etc': (
'ED3848-ETC[1.2345,40000].rawtx',
''
'ED3848-ETC[1.2345,40000].rawtx', ''
),
'xmr': (
'8BFA29-963699-XMR[0.257].rawtx', ''
)
},
}

View file

@ -88,7 +88,7 @@ class CmdTestRefAltcoin(CmdTestRef, CmdTestBase):
from mmgen.tx.file import MMGenTxFile
src = CmdTestRefTX.sources['ref_tx_file']
for coin, files in src.items():
if coin == 'btc':
if coin in ('btc', 'xmr'): # XMR is automount-only
continue
if coin == 'mm1':
coin = 'eth'