From 7bd098fd61297c8a11bafa06b0bdb03fbbb39814 Mon Sep 17 00:00:00 2001 From: The MMGen Project Date: Fri, 11 Sep 2026 14:10:55 +0000 Subject: [PATCH] cmdtest.py autosign_automount: add XMR TX file to removable device --- test/cmdtest_d/automount.py | 2 +- test/cmdtest_d/autosign.py | 3 ++- test/cmdtest_d/ref.py | 6 ++++-- test/cmdtest_d/ref_altcoin.py | 2 +- 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/test/cmdtest_d/automount.py b/test/cmdtest_d/automount.py index 4791d340..4108493f 100755 --- a/test/cmdtest_d/automount.py +++ b/test/cmdtest_d/automount.py @@ -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): diff --git a/test/cmdtest_d/autosign.py b/test/cmdtest_d/autosign.py index 129e15c7..1fb96117 100755 --- a/test/cmdtest_d/autosign.py +++ b/test/cmdtest_d/autosign.py @@ -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): diff --git a/test/cmdtest_d/ref.py b/test/cmdtest_d/ref.py index f6894a4b..7ca02f0e 100755 --- a/test/cmdtest_d/ref.py +++ b/test/cmdtest_d/ref.py @@ -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', '' ) }, } diff --git a/test/cmdtest_d/ref_altcoin.py b/test/cmdtest_d/ref_altcoin.py index d86c89dd..124e47a7 100755 --- a/test/cmdtest_d/ref_altcoin.py +++ b/test/cmdtest_d/ref_altcoin.py @@ -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'