aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rwxr-xr-xtest/functional/create_cache.py2
-rwxr-xr-xtest/functional/example_test.py2
-rwxr-xr-xtest/functional/feature_abortnode.py2
-rwxr-xr-xtest/functional/feature_addrman.py2
-rwxr-xr-xtest/functional/feature_anchors.py2
-rwxr-xr-xtest/functional/feature_asmap.py2
-rwxr-xr-xtest/functional/feature_assumeutxo.py2
-rwxr-xr-xtest/functional/feature_assumevalid.py2
-rwxr-xr-xtest/functional/feature_bind_extra.py2
-rwxr-xr-xtest/functional/feature_bind_port_discover.py2
-rwxr-xr-xtest/functional/feature_bind_port_externalip.py2
-rwxr-xr-xtest/functional/feature_bip68_sequence.py2
-rwxr-xr-xtest/functional/feature_block.py2
-rwxr-xr-xtest/functional/feature_blocksdir.py2
-rwxr-xr-xtest/functional/feature_cltv.py2
-rwxr-xr-xtest/functional/feature_coinstatsindex.py2
-rwxr-xr-xtest/functional/feature_config_args.py2
-rwxr-xr-xtest/functional/feature_csv_activation.py2
-rwxr-xr-xtest/functional/feature_dbcrash.py2
-rwxr-xr-xtest/functional/feature_dersig.py2
-rwxr-xr-xtest/functional/feature_dirsymlinks.py2
-rwxr-xr-xtest/functional/feature_discover.py2
-rwxr-xr-xtest/functional/feature_fastprune.py2
-rwxr-xr-xtest/functional/feature_fee_estimation.py2
-rwxr-xr-xtest/functional/feature_filelock.py2
-rwxr-xr-xtest/functional/feature_framework_miniwallet.py2
-rwxr-xr-xtest/functional/feature_help.py2
-rwxr-xr-xtest/functional/feature_includeconf.py2
-rwxr-xr-xtest/functional/feature_index_prune.py2
-rwxr-xr-xtest/functional/feature_init.py2
-rwxr-xr-xtest/functional/feature_loadblock.py2
-rwxr-xr-xtest/functional/feature_logging.py2
-rwxr-xr-xtest/functional/feature_maxtipage.py2
-rwxr-xr-xtest/functional/feature_maxuploadtarget.py2
-rwxr-xr-xtest/functional/feature_minchainwork.py2
-rwxr-xr-xtest/functional/feature_notifications.py2
-rwxr-xr-xtest/functional/feature_nulldummy.py2
-rwxr-xr-xtest/functional/feature_posix_fs_permissions.py2
-rwxr-xr-xtest/functional/feature_presegwit_node_upgrade.py2
-rwxr-xr-xtest/functional/feature_proxy.py2
-rwxr-xr-xtest/functional/feature_pruning.py2
-rwxr-xr-xtest/functional/feature_rbf.py2
-rwxr-xr-xtest/functional/feature_reindex.py2
-rwxr-xr-xtest/functional/feature_reindex_readonly.py2
-rwxr-xr-xtest/functional/feature_remove_pruned_files_on_startup.py2
-rwxr-xr-xtest/functional/feature_segwit.py2
-rwxr-xr-xtest/functional/feature_settings.py2
-rwxr-xr-xtest/functional/feature_shutdown.py2
-rwxr-xr-xtest/functional/feature_signet.py2
-rwxr-xr-xtest/functional/feature_startupnotify.py2
-rwxr-xr-xtest/functional/feature_taproot.py2
-rwxr-xr-xtest/functional/feature_uacomment.py2
-rwxr-xr-xtest/functional/feature_unsupported_utxo_db.py2
-rwxr-xr-xtest/functional/feature_utxo_set_hash.py2
-rwxr-xr-xtest/functional/feature_versionbits_warning.py2
-rwxr-xr-xtest/functional/interface_bitcoin_cli.py2
-rwxr-xr-xtest/functional/interface_http.py2
-rwxr-xr-xtest/functional/interface_rest.py2
-rwxr-xr-xtest/functional/interface_rpc.py2
-rwxr-xr-xtest/functional/interface_usdt_coinselection.py2
-rwxr-xr-xtest/functional/interface_usdt_mempool.py2
-rwxr-xr-xtest/functional/interface_usdt_net.py2
-rwxr-xr-xtest/functional/interface_usdt_utxocache.py2
-rwxr-xr-xtest/functional/interface_usdt_validation.py2
-rwxr-xr-xtest/functional/interface_zmq.py2
-rwxr-xr-xtest/functional/mempool_accept.py2
-rwxr-xr-xtest/functional/mempool_accept_wtxid.py2
-rwxr-xr-xtest/functional/mempool_compatibility.py2
-rwxr-xr-xtest/functional/mempool_datacarrier.py2
-rwxr-xr-xtest/functional/mempool_dust.py2
-rwxr-xr-xtest/functional/mempool_expiry.py2
-rwxr-xr-xtest/functional/mempool_limit.py2
-rwxr-xr-xtest/functional/mempool_package_limits.py2
-rwxr-xr-xtest/functional/mempool_package_onemore.py2
-rwxr-xr-xtest/functional/mempool_package_rbf.py2
-rwxr-xr-xtest/functional/mempool_packages.py2
-rwxr-xr-xtest/functional/mempool_persist.py2
-rwxr-xr-xtest/functional/mempool_reorg.py2
-rwxr-xr-xtest/functional/mempool_resurrect.py2
-rwxr-xr-xtest/functional/mempool_sigoplimit.py2
-rwxr-xr-xtest/functional/mempool_spend_coinbase.py2
-rwxr-xr-xtest/functional/mempool_truc.py2
-rwxr-xr-xtest/functional/mempool_unbroadcast.py2
-rwxr-xr-xtest/functional/mempool_updatefromblock.py2
-rwxr-xr-xtest/functional/mining_basic.py2
-rwxr-xr-xtest/functional/mining_getblocktemplate_longpoll.py2
-rwxr-xr-xtest/functional/mining_prioritisetransaction.py2
-rwxr-xr-xtest/functional/p2p_1p1c_network.py2
-rwxr-xr-xtest/functional/p2p_add_connections.py2
-rwxr-xr-xtest/functional/p2p_addr_relay.py2
-rwxr-xr-xtest/functional/p2p_addrfetch.py2
-rwxr-xr-xtest/functional/p2p_addrv2_relay.py2
-rwxr-xr-xtest/functional/p2p_block_sync.py2
-rwxr-xr-xtest/functional/p2p_blockfilters.py2
-rwxr-xr-xtest/functional/p2p_blocksonly.py2
-rwxr-xr-xtest/functional/p2p_compactblocks.py2
-rwxr-xr-xtest/functional/p2p_compactblocks_blocksonly.py2
-rwxr-xr-xtest/functional/p2p_compactblocks_hb.py2
-rwxr-xr-xtest/functional/p2p_disconnect_ban.py2
-rwxr-xr-xtest/functional/p2p_dns_seeds.py2
-rwxr-xr-xtest/functional/p2p_dos_header_tree.py2
-rwxr-xr-xtest/functional/p2p_eviction.py2
-rwxr-xr-xtest/functional/p2p_feefilter.py2
-rwxr-xr-xtest/functional/p2p_filter.py2
-rwxr-xr-xtest/functional/p2p_fingerprint.py2
-rwxr-xr-xtest/functional/p2p_getaddr_caching.py2
-rwxr-xr-xtest/functional/p2p_getdata.py2
-rwxr-xr-xtest/functional/p2p_handshake.py2
-rwxr-xr-xtest/functional/p2p_headers_sync_with_minchainwork.py2
-rwxr-xr-xtest/functional/p2p_i2p_ports.py2
-rwxr-xr-xtest/functional/p2p_i2p_sessions.py2
-rwxr-xr-xtest/functional/p2p_ibd_stalling.py2
-rwxr-xr-xtest/functional/p2p_ibd_txrelay.py2
-rwxr-xr-xtest/functional/p2p_initial_headers_sync.py2
-rwxr-xr-xtest/functional/p2p_invalid_block.py2
-rwxr-xr-xtest/functional/p2p_invalid_locator.py2
-rwxr-xr-xtest/functional/p2p_invalid_messages.py2
-rwxr-xr-xtest/functional/p2p_invalid_tx.py2
-rwxr-xr-xtest/functional/p2p_leak.py2
-rwxr-xr-xtest/functional/p2p_leak_tx.py2
-rwxr-xr-xtest/functional/p2p_message_capture.py2
-rwxr-xr-xtest/functional/p2p_mutated_blocks.py2
-rwxr-xr-xtest/functional/p2p_net_deadlock.py2
-rwxr-xr-xtest/functional/p2p_nobloomfilter_messages.py2
-rwxr-xr-xtest/functional/p2p_node_network_limited.py2
-rwxr-xr-xtest/functional/p2p_opportunistic_1p1c.py2
-rwxr-xr-xtest/functional/p2p_orphan_handling.py2
-rwxr-xr-xtest/functional/p2p_outbound_eviction.py2
-rwxr-xr-xtest/functional/p2p_permissions.py2
-rwxr-xr-xtest/functional/p2p_ping.py2
-rwxr-xr-xtest/functional/p2p_segwit.py2
-rwxr-xr-xtest/functional/p2p_sendheaders.py2
-rwxr-xr-xtest/functional/p2p_sendtxrcncl.py2
-rwxr-xr-xtest/functional/p2p_timeouts.py2
-rwxr-xr-xtest/functional/p2p_tx_download.py2
-rwxr-xr-xtest/functional/p2p_tx_privacy.py2
-rwxr-xr-xtest/functional/p2p_unrequested_blocks.py2
-rwxr-xr-xtest/functional/p2p_v2_encrypted.py2
-rwxr-xr-xtest/functional/p2p_v2_misbehaving.py2
-rwxr-xr-xtest/functional/p2p_v2_transport.py2
-rwxr-xr-xtest/functional/rpc_bind.py2
-rwxr-xr-xtest/functional/rpc_blockchain.py2
-rwxr-xr-xtest/functional/rpc_createmultisig.py2
-rwxr-xr-xtest/functional/rpc_decodescript.py2
-rwxr-xr-xtest/functional/rpc_deprecated.py2
-rwxr-xr-xtest/functional/rpc_deriveaddresses.py2
-rwxr-xr-xtest/functional/rpc_dumptxoutset.py2
-rwxr-xr-xtest/functional/rpc_estimatefee.py2
-rwxr-xr-xtest/functional/rpc_generate.py2
-rwxr-xr-xtest/functional/rpc_getblockfilter.py2
-rwxr-xr-xtest/functional/rpc_getblockfrompeer.py2
-rwxr-xr-xtest/functional/rpc_getblockstats.py2
-rwxr-xr-xtest/functional/rpc_getchaintips.py2
-rwxr-xr-xtest/functional/rpc_getdescriptorinfo.py2
-rwxr-xr-xtest/functional/rpc_help.py2
-rwxr-xr-xtest/functional/rpc_invalid_address_message.py2
-rwxr-xr-xtest/functional/rpc_invalidateblock.py2
-rwxr-xr-xtest/functional/rpc_mempool_info.py2
-rwxr-xr-xtest/functional/rpc_misc.py2
-rwxr-xr-xtest/functional/rpc_named_arguments.py2
-rwxr-xr-xtest/functional/rpc_net.py2
-rwxr-xr-xtest/functional/rpc_packages.py2
-rwxr-xr-xtest/functional/rpc_preciousblock.py2
-rwxr-xr-xtest/functional/rpc_psbt.py2
-rwxr-xr-xtest/functional/rpc_rawtransaction.py2
-rwxr-xr-xtest/functional/rpc_scanblocks.py2
-rwxr-xr-xtest/functional/rpc_scantxoutset.py2
-rwxr-xr-xtest/functional/rpc_setban.py2
-rwxr-xr-xtest/functional/rpc_signer.py2
-rwxr-xr-xtest/functional/rpc_signmessagewithprivkey.py2
-rwxr-xr-xtest/functional/rpc_signrawtransactionwithkey.py2
-rwxr-xr-xtest/functional/rpc_txoutproof.py2
-rwxr-xr-xtest/functional/rpc_uptime.py2
-rwxr-xr-xtest/functional/rpc_users.py2
-rwxr-xr-xtest/functional/rpc_validateaddress.py2
-rwxr-xr-xtest/functional/rpc_whitelist.py2
-rwxr-xr-xtest/functional/test_framework/test_framework.py2
-rwxr-xr-xtest/functional/tool_signet_miner.py2
-rwxr-xr-xtest/functional/tool_wallet.py2
-rwxr-xr-xtest/functional/wallet_abandonconflict.py2
-rwxr-xr-xtest/functional/wallet_address_types.py2
-rwxr-xr-xtest/functional/wallet_assumeutxo.py2
-rwxr-xr-xtest/functional/wallet_avoid_mixing_output_types.py2
-rwxr-xr-xtest/functional/wallet_avoidreuse.py2
-rwxr-xr-xtest/functional/wallet_backup.py2
-rwxr-xr-xtest/functional/wallet_backwards_compatibility.py2
-rwxr-xr-xtest/functional/wallet_balance.py2
-rwxr-xr-xtest/functional/wallet_basic.py2
-rwxr-xr-xtest/functional/wallet_blank.py2
-rwxr-xr-xtest/functional/wallet_bumpfee.py2
-rwxr-xr-xtest/functional/wallet_change_address.py2
-rwxr-xr-xtest/functional/wallet_coinbase_category.py2
-rwxr-xr-xtest/functional/wallet_conflicts.py2
-rwxr-xr-xtest/functional/wallet_create_tx.py2
-rwxr-xr-xtest/functional/wallet_createwallet.py2
-rwxr-xr-xtest/functional/wallet_createwalletdescriptor.py2
-rwxr-xr-xtest/functional/wallet_crosschain.py2
-rwxr-xr-xtest/functional/wallet_descriptor.py2
-rwxr-xr-xtest/functional/wallet_disable.py2
-rwxr-xr-xtest/functional/wallet_dump.py2
-rwxr-xr-xtest/functional/wallet_encryption.py2
-rwxr-xr-xtest/functional/wallet_fallbackfee.py2
-rwxr-xr-xtest/functional/wallet_fast_rescan.py2
-rwxr-xr-xtest/functional/wallet_fundrawtransaction.py2
-rwxr-xr-xtest/functional/wallet_gethdkeys.py2
-rwxr-xr-xtest/functional/wallet_groups.py2
-rwxr-xr-xtest/functional/wallet_hd.py2
-rwxr-xr-xtest/functional/wallet_implicitsegwit.py2
-rwxr-xr-xtest/functional/wallet_import_rescan.py2
-rwxr-xr-xtest/functional/wallet_import_with_label.py2
-rwxr-xr-xtest/functional/wallet_importdescriptors.py2
-rwxr-xr-xtest/functional/wallet_importmulti.py2
-rwxr-xr-xtest/functional/wallet_importprunedfunds.py2
-rwxr-xr-xtest/functional/wallet_inactive_hdchains.py2
-rwxr-xr-xtest/functional/wallet_keypool.py2
-rwxr-xr-xtest/functional/wallet_keypool_topup.py2
-rwxr-xr-xtest/functional/wallet_labels.py2
-rwxr-xr-xtest/functional/wallet_listdescriptors.py2
-rwxr-xr-xtest/functional/wallet_listreceivedby.py2
-rwxr-xr-xtest/functional/wallet_listsinceblock.py2
-rwxr-xr-xtest/functional/wallet_listtransactions.py2
-rwxr-xr-xtest/functional/wallet_migration.py2
-rwxr-xr-xtest/functional/wallet_miniscript.py2
-rwxr-xr-xtest/functional/wallet_multisig_descriptor_psbt.py2
-rwxr-xr-xtest/functional/wallet_multiwallet.py2
-rwxr-xr-xtest/functional/wallet_orphanedreward.py2
-rwxr-xr-xtest/functional/wallet_pruning.py2
-rwxr-xr-xtest/functional/wallet_reindex.py2
-rwxr-xr-xtest/functional/wallet_reorgsrestore.py2
-rwxr-xr-xtest/functional/wallet_rescan_unconfirmed.py2
-rwxr-xr-xtest/functional/wallet_resendwallettransactions.py2
-rwxr-xr-xtest/functional/wallet_send.py2
-rwxr-xr-xtest/functional/wallet_sendall.py2
-rwxr-xr-xtest/functional/wallet_sendmany.py2
-rwxr-xr-xtest/functional/wallet_signer.py2
-rwxr-xr-xtest/functional/wallet_signmessagewithaddress.py2
-rwxr-xr-xtest/functional/wallet_signrawtransactionwithwallet.py2
-rwxr-xr-xtest/functional/wallet_simulaterawtx.py2
-rwxr-xr-xtest/functional/wallet_spend_unconfirmed.py2
-rwxr-xr-xtest/functional/wallet_startup.py2
-rwxr-xr-xtest/functional/wallet_taproot.py2
-rwxr-xr-xtest/functional/wallet_timelock.py2
-rwxr-xr-xtest/functional/wallet_transactiontime_rescan.py2
-rwxr-xr-xtest/functional/wallet_txn_clone.py2
-rwxr-xr-xtest/functional/wallet_txn_doublespend.py2
-rwxr-xr-xtest/functional/wallet_upgradewallet.py2
-rwxr-xr-xtest/functional/wallet_watchonly.py2
247 files changed, 247 insertions, 247 deletions
diff --git a/test/functional/create_cache.py b/test/functional/create_cache.py
index 1108a8e354..0702ea7666 100755
--- a/test/functional/create_cache.py
+++ b/test/functional/create_cache.py
@@ -24,4 +24,4 @@ class CreateCache(BitcoinTestFramework):
pass
if __name__ == '__main__':
- CreateCache().main()
+ CreateCache(__file__).main()
diff --git a/test/functional/example_test.py b/test/functional/example_test.py
index 7f7aa065ad..39cea2962f 100755
--- a/test/functional/example_test.py
+++ b/test/functional/example_test.py
@@ -225,4 +225,4 @@ class ExampleTest(BitcoinTestFramework):
if __name__ == '__main__':
- ExampleTest().main()
+ ExampleTest(__file__).main()
diff --git a/test/functional/feature_abortnode.py b/test/functional/feature_abortnode.py
index 01ba2834c4..a5c8aa163a 100755
--- a/test/functional/feature_abortnode.py
+++ b/test/functional/feature_abortnode.py
@@ -42,4 +42,4 @@ class AbortNodeTest(BitcoinTestFramework):
if __name__ == '__main__':
- AbortNodeTest().main()
+ AbortNodeTest(__file__).main()
diff --git a/test/functional/feature_addrman.py b/test/functional/feature_addrman.py
index 2efad70900..c4e60fba12 100755
--- a/test/functional/feature_addrman.py
+++ b/test/functional/feature_addrman.py
@@ -160,4 +160,4 @@ class AddrmanTest(BitcoinTestFramework):
if __name__ == "__main__":
- AddrmanTest().main()
+ AddrmanTest(__file__).main()
diff --git a/test/functional/feature_anchors.py b/test/functional/feature_anchors.py
index 5d68f50f58..5ca46c1366 100755
--- a/test/functional/feature_anchors.py
+++ b/test/functional/feature_anchors.py
@@ -141,4 +141,4 @@ class AnchorsTest(BitcoinTestFramework):
if __name__ == "__main__":
- AnchorsTest().main()
+ AnchorsTest(__file__).main()
diff --git a/test/functional/feature_asmap.py b/test/functional/feature_asmap.py
index e469deef49..cbff028bcc 100755
--- a/test/functional/feature_asmap.py
+++ b/test/functional/feature_asmap.py
@@ -146,4 +146,4 @@ class AsmapTest(BitcoinTestFramework):
if __name__ == '__main__':
- AsmapTest().main()
+ AsmapTest(__file__).main()
diff --git a/test/functional/feature_assumeutxo.py b/test/functional/feature_assumeutxo.py
index 688e2866b2..f4d7c47d13 100755
--- a/test/functional/feature_assumeutxo.py
+++ b/test/functional/feature_assumeutxo.py
@@ -555,4 +555,4 @@ class Block:
chain_tx: int
if __name__ == '__main__':
- AssumeutxoTest().main()
+ AssumeutxoTest(__file__).main()
diff --git a/test/functional/feature_assumevalid.py b/test/functional/feature_assumevalid.py
index 982fa79915..03a9f666b2 100755
--- a/test/functional/feature_assumevalid.py
+++ b/test/functional/feature_assumevalid.py
@@ -172,4 +172,4 @@ class AssumeValidTest(BitcoinTestFramework):
if __name__ == '__main__':
- AssumeValidTest().main()
+ AssumeValidTest(__file__).main()
diff --git a/test/functional/feature_bind_extra.py b/test/functional/feature_bind_extra.py
index ed2328b76f..6b53de188f 100755
--- a/test/functional/feature_bind_extra.py
+++ b/test/functional/feature_bind_extra.py
@@ -88,4 +88,4 @@ class BindExtraTest(BitcoinTestFramework):
assert_equal(binds, set(expected_services))
if __name__ == '__main__':
- BindExtraTest().main()
+ BindExtraTest(__file__).main()
diff --git a/test/functional/feature_bind_port_discover.py b/test/functional/feature_bind_port_discover.py
index 6e07f2f16c..568c88bcbe 100755
--- a/test/functional/feature_bind_port_discover.py
+++ b/test/functional/feature_bind_port_discover.py
@@ -75,4 +75,4 @@ class BindPortDiscoverTest(BitcoinTestFramework):
assert found_addr1
if __name__ == '__main__':
- BindPortDiscoverTest().main()
+ BindPortDiscoverTest(__file__).main()
diff --git a/test/functional/feature_bind_port_externalip.py b/test/functional/feature_bind_port_externalip.py
index 6a74ce5738..8e2ac02470 100755
--- a/test/functional/feature_bind_port_externalip.py
+++ b/test/functional/feature_bind_port_externalip.py
@@ -72,4 +72,4 @@ class BindPortExternalIPTest(BitcoinTestFramework):
assert found
if __name__ == '__main__':
- BindPortExternalIPTest().main()
+ BindPortExternalIPTest(__file__).main()
diff --git a/test/functional/feature_bip68_sequence.py b/test/functional/feature_bip68_sequence.py
index 14b92d6733..2d61987e94 100755
--- a/test/functional/feature_bip68_sequence.py
+++ b/test/functional/feature_bip68_sequence.py
@@ -412,4 +412,4 @@ class BIP68Test(BitcoinTestFramework):
if __name__ == '__main__':
- BIP68Test().main()
+ BIP68Test(__file__).main()
diff --git a/test/functional/feature_block.py b/test/functional/feature_block.py
index 932f37a083..172af27848 100755
--- a/test/functional/feature_block.py
+++ b/test/functional/feature_block.py
@@ -1434,4 +1434,4 @@ class FullBlockTest(BitcoinTestFramework):
if __name__ == '__main__':
- FullBlockTest().main()
+ FullBlockTest(__file__).main()
diff --git a/test/functional/feature_blocksdir.py b/test/functional/feature_blocksdir.py
index 1a60c13c2c..4a43632855 100755
--- a/test/functional/feature_blocksdir.py
+++ b/test/functional/feature_blocksdir.py
@@ -35,4 +35,4 @@ class BlocksdirTest(BitcoinTestFramework):
if __name__ == '__main__':
- BlocksdirTest().main()
+ BlocksdirTest(__file__).main()
diff --git a/test/functional/feature_cltv.py b/test/functional/feature_cltv.py
index fb3f662271..dc01f8fa8f 100755
--- a/test/functional/feature_cltv.py
+++ b/test/functional/feature_cltv.py
@@ -195,4 +195,4 @@ class BIP65Test(BitcoinTestFramework):
if __name__ == '__main__':
- BIP65Test().main()
+ BIP65Test(__file__).main()
diff --git a/test/functional/feature_coinstatsindex.py b/test/functional/feature_coinstatsindex.py
index 691163d053..b4392e6002 100755
--- a/test/functional/feature_coinstatsindex.py
+++ b/test/functional/feature_coinstatsindex.py
@@ -324,4 +324,4 @@ class CoinStatsIndexTest(BitcoinTestFramework):
if __name__ == '__main__':
- CoinStatsIndexTest().main()
+ CoinStatsIndexTest(__file__).main()
diff --git a/test/functional/feature_config_args.py b/test/functional/feature_config_args.py
index 9e13a3deef..dc812d224f 100755
--- a/test/functional/feature_config_args.py
+++ b/test/functional/feature_config_args.py
@@ -431,4 +431,4 @@ class ConfArgsTest(BitcoinTestFramework):
if __name__ == '__main__':
- ConfArgsTest().main()
+ ConfArgsTest(__file__).main()
diff --git a/test/functional/feature_csv_activation.py b/test/functional/feature_csv_activation.py
index 2db9682931..df02bcc6ad 100755
--- a/test/functional/feature_csv_activation.py
+++ b/test/functional/feature_csv_activation.py
@@ -482,4 +482,4 @@ class BIP68_112_113Test(BitcoinTestFramework):
if __name__ == '__main__':
- BIP68_112_113Test().main()
+ BIP68_112_113Test(__file__).main()
diff --git a/test/functional/feature_dbcrash.py b/test/functional/feature_dbcrash.py
index afd0246209..f1aa3961e3 100755
--- a/test/functional/feature_dbcrash.py
+++ b/test/functional/feature_dbcrash.py
@@ -286,4 +286,4 @@ class ChainstateWriteCrashTest(BitcoinTestFramework):
if __name__ == "__main__":
- ChainstateWriteCrashTest().main()
+ ChainstateWriteCrashTest(__file__).main()
diff --git a/test/functional/feature_dersig.py b/test/functional/feature_dersig.py
index 035e7151ca..48b0b745c6 100755
--- a/test/functional/feature_dersig.py
+++ b/test/functional/feature_dersig.py
@@ -148,4 +148,4 @@ class BIP66Test(BitcoinTestFramework):
if __name__ == '__main__':
- BIP66Test().main()
+ BIP66Test(__file__).main()
diff --git a/test/functional/feature_dirsymlinks.py b/test/functional/feature_dirsymlinks.py
index 96f4aed08a..9fed99cbe5 100755
--- a/test/functional/feature_dirsymlinks.py
+++ b/test/functional/feature_dirsymlinks.py
@@ -38,4 +38,4 @@ class SymlinkTest(BitcoinTestFramework):
if __name__ == "__main__":
- SymlinkTest().main()
+ SymlinkTest(__file__).main()
diff --git a/test/functional/feature_discover.py b/test/functional/feature_discover.py
index 7f4b81114e..9eaaea3652 100755
--- a/test/functional/feature_discover.py
+++ b/test/functional/feature_discover.py
@@ -72,4 +72,4 @@ class DiscoverTest(BitcoinTestFramework):
if __name__ == '__main__':
- DiscoverTest().main()
+ DiscoverTest(__file__).main()
diff --git a/test/functional/feature_fastprune.py b/test/functional/feature_fastprune.py
index c913c4f93a..ca6877b901 100755
--- a/test/functional/feature_fastprune.py
+++ b/test/functional/feature_fastprune.py
@@ -26,4 +26,4 @@ class FeatureFastpruneTest(BitcoinTestFramework):
if __name__ == '__main__':
- FeatureFastpruneTest().main()
+ FeatureFastpruneTest(__file__).main()
diff --git a/test/functional/feature_fee_estimation.py b/test/functional/feature_fee_estimation.py
index ffc87f8b8b..34fb3c5573 100755
--- a/test/functional/feature_fee_estimation.py
+++ b/test/functional/feature_fee_estimation.py
@@ -439,4 +439,4 @@ class EstimateFeeTest(BitcoinTestFramework):
if __name__ == "__main__":
- EstimateFeeTest().main()
+ EstimateFeeTest(__file__).main()
diff --git a/test/functional/feature_filelock.py b/test/functional/feature_filelock.py
index 567207915e..e71871114d 100755
--- a/test/functional/feature_filelock.py
+++ b/test/functional/feature_filelock.py
@@ -54,4 +54,4 @@ class FilelockTest(BitcoinTestFramework):
check_wallet_filelock(True)
if __name__ == '__main__':
- FilelockTest().main()
+ FilelockTest(__file__).main()
diff --git a/test/functional/feature_framework_miniwallet.py b/test/functional/feature_framework_miniwallet.py
index f108289018..1f381df236 100755
--- a/test/functional/feature_framework_miniwallet.py
+++ b/test/functional/feature_framework_miniwallet.py
@@ -46,4 +46,4 @@ class FeatureFrameworkMiniWalletTest(BitcoinTestFramework):
if __name__ == '__main__':
- FeatureFrameworkMiniWalletTest().main()
+ FeatureFrameworkMiniWalletTest(__file__).main()
diff --git a/test/functional/feature_help.py b/test/functional/feature_help.py
index 4b66030b47..6d8a742d89 100755
--- a/test/functional/feature_help.py
+++ b/test/functional/feature_help.py
@@ -59,4 +59,4 @@ class HelpTest(BitcoinTestFramework):
if __name__ == '__main__':
- HelpTest().main()
+ HelpTest(__file__).main()
diff --git a/test/functional/feature_includeconf.py b/test/functional/feature_includeconf.py
index 58ab063e71..ee484e7ec5 100755
--- a/test/functional/feature_includeconf.py
+++ b/test/functional/feature_includeconf.py
@@ -83,4 +83,4 @@ class IncludeConfTest(BitcoinTestFramework):
assert subversion.endswith("main; relative; relative2)/")
if __name__ == '__main__':
- IncludeConfTest().main()
+ IncludeConfTest(__file__).main()
diff --git a/test/functional/feature_index_prune.py b/test/functional/feature_index_prune.py
index 66c0a4f615..030bf51ed8 100755
--- a/test/functional/feature_index_prune.py
+++ b/test/functional/feature_index_prune.py
@@ -155,4 +155,4 @@ class FeatureIndexPruneTest(BitcoinTestFramework):
if __name__ == '__main__':
- FeatureIndexPruneTest().main()
+ FeatureIndexPruneTest(__file__).main()
diff --git a/test/functional/feature_init.py b/test/functional/feature_init.py
index 22ae0c307b..659d33684e 100755
--- a/test/functional/feature_init.py
+++ b/test/functional/feature_init.py
@@ -149,4 +149,4 @@ class InitStressTest(BitcoinTestFramework):
if __name__ == '__main__':
- InitStressTest().main()
+ InitStressTest(__file__).main()
diff --git a/test/functional/feature_loadblock.py b/test/functional/feature_loadblock.py
index 5129e0d328..1519c132b9 100755
--- a/test/functional/feature_loadblock.py
+++ b/test/functional/feature_loadblock.py
@@ -80,4 +80,4 @@ class LoadblockTest(BitcoinTestFramework):
if __name__ == '__main__':
- LoadblockTest().main()
+ LoadblockTest(__file__).main()
diff --git a/test/functional/feature_logging.py b/test/functional/feature_logging.py
index 0e9aca358d..ab817fd12d 100755
--- a/test/functional/feature_logging.py
+++ b/test/functional/feature_logging.py
@@ -101,4 +101,4 @@ class LoggingTest(BitcoinTestFramework):
if __name__ == '__main__':
- LoggingTest().main()
+ LoggingTest(__file__).main()
diff --git a/test/functional/feature_maxtipage.py b/test/functional/feature_maxtipage.py
index a1774a5395..4ce9bb949c 100755
--- a/test/functional/feature_maxtipage.py
+++ b/test/functional/feature_maxtipage.py
@@ -62,4 +62,4 @@ class MaxTipAgeTest(BitcoinTestFramework):
if __name__ == '__main__':
- MaxTipAgeTest().main()
+ MaxTipAgeTest(__file__).main()
diff --git a/test/functional/feature_maxuploadtarget.py b/test/functional/feature_maxuploadtarget.py
index 39cff7b738..136cdd024d 100755
--- a/test/functional/feature_maxuploadtarget.py
+++ b/test/functional/feature_maxuploadtarget.py
@@ -206,4 +206,4 @@ class MaxUploadTest(BitcoinTestFramework):
self.nodes[0].assert_start_raises_init_error(extra_args=["-maxuploadtarget=abc"], expected_msg="Error: Unable to parse -maxuploadtarget: 'abc'")
if __name__ == '__main__':
- MaxUploadTest().main()
+ MaxUploadTest(__file__).main()
diff --git a/test/functional/feature_minchainwork.py b/test/functional/feature_minchainwork.py
index 078d2ef63c..8327a0477b 100755
--- a/test/functional/feature_minchainwork.py
+++ b/test/functional/feature_minchainwork.py
@@ -115,4 +115,4 @@ class MinimumChainWorkTest(BitcoinTestFramework):
if __name__ == '__main__':
- MinimumChainWorkTest().main()
+ MinimumChainWorkTest(__file__).main()
diff --git a/test/functional/feature_notifications.py b/test/functional/feature_notifications.py
index d2b5315d31..79e8df4b5e 100755
--- a/test/functional/feature_notifications.py
+++ b/test/functional/feature_notifications.py
@@ -194,4 +194,4 @@ class NotificationsTest(BitcoinTestFramework):
if __name__ == '__main__':
- NotificationsTest().main()
+ NotificationsTest(__file__).main()
diff --git a/test/functional/feature_nulldummy.py b/test/functional/feature_nulldummy.py
index f896cb6f43..a53f78c13d 100755
--- a/test/functional/feature_nulldummy.py
+++ b/test/functional/feature_nulldummy.py
@@ -154,4 +154,4 @@ class NULLDUMMYTest(BitcoinTestFramework):
if __name__ == '__main__':
- NULLDUMMYTest().main()
+ NULLDUMMYTest(__file__).main()
diff --git a/test/functional/feature_posix_fs_permissions.py b/test/functional/feature_posix_fs_permissions.py
index 40528779e6..28b1803891 100755
--- a/test/functional/feature_posix_fs_permissions.py
+++ b/test/functional/feature_posix_fs_permissions.py
@@ -40,4 +40,4 @@ class PosixFsPermissionsTest(BitcoinTestFramework):
if __name__ == '__main__':
- PosixFsPermissionsTest().main()
+ PosixFsPermissionsTest(__file__).main()
diff --git a/test/functional/feature_presegwit_node_upgrade.py b/test/functional/feature_presegwit_node_upgrade.py
index 3d762c8197..8c1bd90083 100755
--- a/test/functional/feature_presegwit_node_upgrade.py
+++ b/test/functional/feature_presegwit_node_upgrade.py
@@ -54,4 +54,4 @@ class SegwitUpgradeTest(BitcoinTestFramework):
if __name__ == '__main__':
- SegwitUpgradeTest().main()
+ SegwitUpgradeTest(__file__).main()
diff --git a/test/functional/feature_proxy.py b/test/functional/feature_proxy.py
index 7a6f639021..2201821fda 100755
--- a/test/functional/feature_proxy.py
+++ b/test/functional/feature_proxy.py
@@ -457,4 +457,4 @@ class ProxyTest(BitcoinTestFramework):
os.unlink(socket_path)
if __name__ == '__main__':
- ProxyTest().main()
+ ProxyTest(__file__).main()
diff --git a/test/functional/feature_pruning.py b/test/functional/feature_pruning.py
index 5f99b8dee8..8d924282cf 100755
--- a/test/functional/feature_pruning.py
+++ b/test/functional/feature_pruning.py
@@ -513,4 +513,4 @@ class PruneTest(BitcoinTestFramework):
assert_equal(pruneheight, new_pruneheight)
if __name__ == '__main__':
- PruneTest().main()
+ PruneTest(__file__).main()
diff --git a/test/functional/feature_rbf.py b/test/functional/feature_rbf.py
index 739b9b9bb9..cd5f5734c9 100755
--- a/test/functional/feature_rbf.py
+++ b/test/functional/feature_rbf.py
@@ -727,4 +727,4 @@ class ReplaceByFeeTest(BitcoinTestFramework):
assert conflicting_tx['txid'] in self.nodes[0].getrawmempool()
if __name__ == '__main__':
- ReplaceByFeeTest().main()
+ ReplaceByFeeTest(__file__).main()
diff --git a/test/functional/feature_reindex.py b/test/functional/feature_reindex.py
index 835cd0c5cf..50a9ae1c06 100755
--- a/test/functional/feature_reindex.py
+++ b/test/functional/feature_reindex.py
@@ -103,4 +103,4 @@ class ReindexTest(BitcoinTestFramework):
if __name__ == '__main__':
- ReindexTest().main()
+ ReindexTest(__file__).main()
diff --git a/test/functional/feature_reindex_readonly.py b/test/functional/feature_reindex_readonly.py
index 52c0bb26a6..858a67566f 100755
--- a/test/functional/feature_reindex_readonly.py
+++ b/test/functional/feature_reindex_readonly.py
@@ -87,4 +87,4 @@ class BlockstoreReindexTest(BitcoinTestFramework):
if __name__ == '__main__':
- BlockstoreReindexTest().main()
+ BlockstoreReindexTest(__file__).main()
diff --git a/test/functional/feature_remove_pruned_files_on_startup.py b/test/functional/feature_remove_pruned_files_on_startup.py
index 4ee653142a..2e689f2920 100755
--- a/test/functional/feature_remove_pruned_files_on_startup.py
+++ b/test/functional/feature_remove_pruned_files_on_startup.py
@@ -52,4 +52,4 @@ class FeatureRemovePrunedFilesOnStartupTest(BitcoinTestFramework):
assert not os.path.exists(rev1)
if __name__ == '__main__':
- FeatureRemovePrunedFilesOnStartupTest().main()
+ FeatureRemovePrunedFilesOnStartupTest(__file__).main()
diff --git a/test/functional/feature_segwit.py b/test/functional/feature_segwit.py
index 4dc19222c4..f98f326e8f 100755
--- a/test/functional/feature_segwit.py
+++ b/test/functional/feature_segwit.py
@@ -657,4 +657,4 @@ class SegWitTest(BitcoinTestFramework):
if __name__ == '__main__':
- SegWitTest().main()
+ SegWitTest(__file__).main()
diff --git a/test/functional/feature_settings.py b/test/functional/feature_settings.py
index 1cd0aeabd3..2189eac7dd 100755
--- a/test/functional/feature_settings.py
+++ b/test/functional/feature_settings.py
@@ -88,4 +88,4 @@ class SettingsTest(BitcoinTestFramework):
if __name__ == '__main__':
- SettingsTest().main()
+ SettingsTest(__file__).main()
diff --git a/test/functional/feature_shutdown.py b/test/functional/feature_shutdown.py
index 291df4c518..a7277be39d 100755
--- a/test/functional/feature_shutdown.py
+++ b/test/functional/feature_shutdown.py
@@ -32,4 +32,4 @@ class ShutdownTest(BitcoinTestFramework):
self.stop_node(0, wait=1000)
if __name__ == '__main__':
- ShutdownTest().main()
+ ShutdownTest(__file__).main()
diff --git a/test/functional/feature_signet.py b/test/functional/feature_signet.py
index a90a2a8e5e..b648266cae 100755
--- a/test/functional/feature_signet.py
+++ b/test/functional/feature_signet.py
@@ -82,4 +82,4 @@ class SignetBasicTest(BitcoinTestFramework):
if __name__ == '__main__':
- SignetBasicTest().main()
+ SignetBasicTest(__file__).main()
diff --git a/test/functional/feature_startupnotify.py b/test/functional/feature_startupnotify.py
index a8e62c6244..1e07103725 100755
--- a/test/functional/feature_startupnotify.py
+++ b/test/functional/feature_startupnotify.py
@@ -39,4 +39,4 @@ class StartupNotifyTest(BitcoinTestFramework):
if __name__ == '__main__':
- StartupNotifyTest().main()
+ StartupNotifyTest(__file__).main()
diff --git a/test/functional/feature_taproot.py b/test/functional/feature_taproot.py
index 1a0844d240..b2e030adc7 100755
--- a/test/functional/feature_taproot.py
+++ b/test/functional/feature_taproot.py
@@ -1766,4 +1766,4 @@ class TaprootTest(BitcoinTestFramework):
if __name__ == '__main__':
- TaprootTest().main()
+ TaprootTest(__file__).main()
diff --git a/test/functional/feature_uacomment.py b/test/functional/feature_uacomment.py
index 4720f6dea3..fc372f543d 100755
--- a/test/functional/feature_uacomment.py
+++ b/test/functional/feature_uacomment.py
@@ -37,4 +37,4 @@ class UacommentTest(BitcoinTestFramework):
if __name__ == '__main__':
- UacommentTest().main()
+ UacommentTest(__file__).main()
diff --git a/test/functional/feature_unsupported_utxo_db.py b/test/functional/feature_unsupported_utxo_db.py
index 6acf551216..694a8e0623 100755
--- a/test/functional/feature_unsupported_utxo_db.py
+++ b/test/functional/feature_unsupported_utxo_db.py
@@ -58,4 +58,4 @@ class UnsupportedUtxoDbTest(BitcoinTestFramework):
if __name__ == "__main__":
- UnsupportedUtxoDbTest().main()
+ UnsupportedUtxoDbTest(__file__).main()
diff --git a/test/functional/feature_utxo_set_hash.py b/test/functional/feature_utxo_set_hash.py
index 0bdcc6d83d..3ab779b87d 100755
--- a/test/functional/feature_utxo_set_hash.py
+++ b/test/functional/feature_utxo_set_hash.py
@@ -75,4 +75,4 @@ class UTXOSetHashTest(BitcoinTestFramework):
if __name__ == '__main__':
- UTXOSetHashTest().main()
+ UTXOSetHashTest(__file__).main()
diff --git a/test/functional/feature_versionbits_warning.py b/test/functional/feature_versionbits_warning.py
index 2c330eb681..dc25ce6c83 100755
--- a/test/functional/feature_versionbits_warning.py
+++ b/test/functional/feature_versionbits_warning.py
@@ -100,4 +100,4 @@ class VersionBitsWarningTest(BitcoinTestFramework):
self.wait_until(lambda: self.versionbits_in_alert_file())
if __name__ == '__main__':
- VersionBitsWarningTest().main()
+ VersionBitsWarningTest(__file__).main()
diff --git a/test/functional/interface_bitcoin_cli.py b/test/functional/interface_bitcoin_cli.py
index a6628dcbf3..e7113f8335 100755
--- a/test/functional/interface_bitcoin_cli.py
+++ b/test/functional/interface_bitcoin_cli.py
@@ -383,4 +383,4 @@ class TestBitcoinCli(BitcoinTestFramework):
if __name__ == '__main__':
- TestBitcoinCli().main()
+ TestBitcoinCli(__file__).main()
diff --git a/test/functional/interface_http.py b/test/functional/interface_http.py
index 6e32009e05..dbdceb52d1 100755
--- a/test/functional/interface_http.py
+++ b/test/functional/interface_http.py
@@ -106,4 +106,4 @@ class HTTPBasicsTest (BitcoinTestFramework):
if __name__ == '__main__':
- HTTPBasicsTest ().main ()
+ HTTPBasicsTest(__file__).main()
diff --git a/test/functional/interface_rest.py b/test/functional/interface_rest.py
index ae8d6b226d..5706b1427b 100755
--- a/test/functional/interface_rest.py
+++ b/test/functional/interface_rest.py
@@ -436,4 +436,4 @@ class RESTTest (BitcoinTestFramework):
assert_equal(resp.read().decode('utf-8').rstrip(), f"Invalid hash: {INVALID_PARAM}")
if __name__ == '__main__':
- RESTTest().main()
+ RESTTest(__file__).main()
diff --git a/test/functional/interface_rpc.py b/test/functional/interface_rpc.py
index 6c1855c400..9074f0a2d9 100755
--- a/test/functional/interface_rpc.py
+++ b/test/functional/interface_rpc.py
@@ -246,4 +246,4 @@ class RPCInterfaceTest(BitcoinTestFramework):
if __name__ == '__main__':
- RPCInterfaceTest().main()
+ RPCInterfaceTest(__file__).main()
diff --git a/test/functional/interface_usdt_coinselection.py b/test/functional/interface_usdt_coinselection.py
index 30931a41cd..dc40986a75 100755
--- a/test/functional/interface_usdt_coinselection.py
+++ b/test/functional/interface_usdt_coinselection.py
@@ -231,4 +231,4 @@ class CoinSelectionTracepointTest(BitcoinTestFramework):
if __name__ == '__main__':
- CoinSelectionTracepointTest().main()
+ CoinSelectionTracepointTest(__file__).main()
diff --git a/test/functional/interface_usdt_mempool.py b/test/functional/interface_usdt_mempool.py
index 0168d9f916..a088278665 100755
--- a/test/functional/interface_usdt_mempool.py
+++ b/test/functional/interface_usdt_mempool.py
@@ -322,4 +322,4 @@ class MempoolTracepointTest(BitcoinTestFramework):
if __name__ == "__main__":
- MempoolTracepointTest().main()
+ MempoolTracepointTest(__file__).main()
diff --git a/test/functional/interface_usdt_net.py b/test/functional/interface_usdt_net.py
index 5d7c8c2304..7b55259b63 100755
--- a/test/functional/interface_usdt_net.py
+++ b/test/functional/interface_usdt_net.py
@@ -168,4 +168,4 @@ class NetTracepointTest(BitcoinTestFramework):
if __name__ == '__main__':
- NetTracepointTest().main()
+ NetTracepointTest(__file__).main()
diff --git a/test/functional/interface_usdt_utxocache.py b/test/functional/interface_usdt_utxocache.py
index 06cdcd10a0..ad98a3a162 100755
--- a/test/functional/interface_usdt_utxocache.py
+++ b/test/functional/interface_usdt_utxocache.py
@@ -407,4 +407,4 @@ class UTXOCacheTracepointTest(BitcoinTestFramework):
if __name__ == '__main__':
- UTXOCacheTracepointTest().main()
+ UTXOCacheTracepointTest(__file__).main()
diff --git a/test/functional/interface_usdt_validation.py b/test/functional/interface_usdt_validation.py
index 30982393d8..9a37b96ada 100755
--- a/test/functional/interface_usdt_validation.py
+++ b/test/functional/interface_usdt_validation.py
@@ -131,4 +131,4 @@ class ValidationTracepointTest(BitcoinTestFramework):
if __name__ == '__main__':
- ValidationTracepointTest().main()
+ ValidationTracepointTest(__file__).main()
diff --git a/test/functional/interface_zmq.py b/test/functional/interface_zmq.py
index 9f6f8919de..b960f40ccc 100755
--- a/test/functional/interface_zmq.py
+++ b/test/functional/interface_zmq.py
@@ -597,4 +597,4 @@ class ZMQTest (BitcoinTestFramework):
if __name__ == '__main__':
- ZMQTest().main()
+ ZMQTest(__file__).main()
diff --git a/test/functional/mempool_accept.py b/test/functional/mempool_accept.py
index e1cee46839..2b841f3791 100755
--- a/test/functional/mempool_accept.py
+++ b/test/functional/mempool_accept.py
@@ -409,4 +409,4 @@ class MempoolAcceptanceTest(BitcoinTestFramework):
)
if __name__ == '__main__':
- MempoolAcceptanceTest().main()
+ MempoolAcceptanceTest(__file__).main()
diff --git a/test/functional/mempool_accept_wtxid.py b/test/functional/mempool_accept_wtxid.py
index 4767d6db22..e00e7b1ae4 100755
--- a/test/functional/mempool_accept_wtxid.py
+++ b/test/functional/mempool_accept_wtxid.py
@@ -125,4 +125,4 @@ class MempoolWtxidTest(BitcoinTestFramework):
assert_equal(node.getmempoolinfo()["unbroadcastcount"], 0)
if __name__ == '__main__':
- MempoolWtxidTest().main()
+ MempoolWtxidTest(__file__).main()
diff --git a/test/functional/mempool_compatibility.py b/test/functional/mempool_compatibility.py
index a126f164aa..7c72aaae77 100755
--- a/test/functional/mempool_compatibility.py
+++ b/test/functional/mempool_compatibility.py
@@ -78,4 +78,4 @@ class MempoolCompatibilityTest(BitcoinTestFramework):
if __name__ == "__main__":
- MempoolCompatibilityTest().main()
+ MempoolCompatibilityTest(__file__).main()
diff --git a/test/functional/mempool_datacarrier.py b/test/functional/mempool_datacarrier.py
index 2e27aa988e..ed6ad8461a 100755
--- a/test/functional/mempool_datacarrier.py
+++ b/test/functional/mempool_datacarrier.py
@@ -88,4 +88,4 @@ class DataCarrierTest(BitcoinTestFramework):
if __name__ == '__main__':
- DataCarrierTest().main()
+ DataCarrierTest(__file__).main()
diff --git a/test/functional/mempool_dust.py b/test/functional/mempool_dust.py
index e0c026207a..1ea03a8a9e 100755
--- a/test/functional/mempool_dust.py
+++ b/test/functional/mempool_dust.py
@@ -110,4 +110,4 @@ class DustRelayFeeTest(BitcoinTestFramework):
if __name__ == '__main__':
- DustRelayFeeTest().main()
+ DustRelayFeeTest(__file__).main()
diff --git a/test/functional/mempool_expiry.py b/test/functional/mempool_expiry.py
index 5eebe43488..2bd88f9825 100755
--- a/test/functional/mempool_expiry.py
+++ b/test/functional/mempool_expiry.py
@@ -114,4 +114,4 @@ class MempoolExpiryTest(BitcoinTestFramework):
if __name__ == '__main__':
- MempoolExpiryTest().main()
+ MempoolExpiryTest(__file__).main()
diff --git a/test/functional/mempool_limit.py b/test/functional/mempool_limit.py
index 49a0a32c45..626928a49a 100755
--- a/test/functional/mempool_limit.py
+++ b/test/functional/mempool_limit.py
@@ -342,4 +342,4 @@ class MempoolLimitTest(BitcoinTestFramework):
if __name__ == '__main__':
- MempoolLimitTest().main()
+ MempoolLimitTest(__file__).main()
diff --git a/test/functional/mempool_package_limits.py b/test/functional/mempool_package_limits.py
index 2a64597511..6e26a684e2 100755
--- a/test/functional/mempool_package_limits.py
+++ b/test/functional/mempool_package_limits.py
@@ -343,4 +343,4 @@ class MempoolPackageLimitsTest(BitcoinTestFramework):
if __name__ == "__main__":
- MempoolPackageLimitsTest().main()
+ MempoolPackageLimitsTest(__file__).main()
diff --git a/test/functional/mempool_package_onemore.py b/test/functional/mempool_package_onemore.py
index 632425814a..fd54a8c3e1 100755
--- a/test/functional/mempool_package_onemore.py
+++ b/test/functional/mempool_package_onemore.py
@@ -77,4 +77,4 @@ class MempoolPackagesTest(BitcoinTestFramework):
if __name__ == '__main__':
- MempoolPackagesTest().main()
+ MempoolPackagesTest(__file__).main()
diff --git a/test/functional/mempool_package_rbf.py b/test/functional/mempool_package_rbf.py
index e9658aa8d0..9b4269f0a0 100755
--- a/test/functional/mempool_package_rbf.py
+++ b/test/functional/mempool_package_rbf.py
@@ -596,4 +596,4 @@ class PackageRBFTest(BitcoinTestFramework):
assert child_result["txid"] not in mempool_info
if __name__ == "__main__":
- PackageRBFTest().main()
+ PackageRBFTest(__file__).main()
diff --git a/test/functional/mempool_packages.py b/test/functional/mempool_packages.py
index 4be6594de6..a844a2a1d8 100755
--- a/test/functional/mempool_packages.py
+++ b/test/functional/mempool_packages.py
@@ -298,4 +298,4 @@ class MempoolPackagesTest(BitcoinTestFramework):
self.sync_blocks()
if __name__ == '__main__':
- MempoolPackagesTest().main()
+ MempoolPackagesTest(__file__).main()
diff --git a/test/functional/mempool_persist.py b/test/functional/mempool_persist.py
index 32a927084a..c64c203e50 100755
--- a/test/functional/mempool_persist.py
+++ b/test/functional/mempool_persist.py
@@ -263,4 +263,4 @@ class MempoolPersistTest(BitcoinTestFramework):
if __name__ == "__main__":
- MempoolPersistTest().main()
+ MempoolPersistTest(__file__).main()
diff --git a/test/functional/mempool_reorg.py b/test/functional/mempool_reorg.py
index 691518ea09..e27942760c 100755
--- a/test/functional/mempool_reorg.py
+++ b/test/functional/mempool_reorg.py
@@ -194,4 +194,4 @@ class MempoolCoinbaseTest(BitcoinTestFramework):
if __name__ == '__main__':
- MempoolCoinbaseTest().main()
+ MempoolCoinbaseTest(__file__).main()
diff --git a/test/functional/mempool_resurrect.py b/test/functional/mempool_resurrect.py
index c10052372d..720255b9e3 100755
--- a/test/functional/mempool_resurrect.py
+++ b/test/functional/mempool_resurrect.py
@@ -55,4 +55,4 @@ class MempoolCoinbaseTest(BitcoinTestFramework):
if __name__ == '__main__':
- MempoolCoinbaseTest().main()
+ MempoolCoinbaseTest(__file__).main()
diff --git a/test/functional/mempool_sigoplimit.py b/test/functional/mempool_sigoplimit.py
index d3fb5f9119..4656176a75 100755
--- a/test/functional/mempool_sigoplimit.py
+++ b/test/functional/mempool_sigoplimit.py
@@ -196,4 +196,4 @@ class BytesPerSigOpTest(BitcoinTestFramework):
if __name__ == '__main__':
- BytesPerSigOpTest().main()
+ BytesPerSigOpTest(__file__).main()
diff --git a/test/functional/mempool_spend_coinbase.py b/test/functional/mempool_spend_coinbase.py
index a7cb2ba602..64ab33d3ff 100755
--- a/test/functional/mempool_spend_coinbase.py
+++ b/test/functional/mempool_spend_coinbase.py
@@ -57,4 +57,4 @@ class MempoolSpendCoinbaseTest(BitcoinTestFramework):
if __name__ == '__main__':
- MempoolSpendCoinbaseTest().main()
+ MempoolSpendCoinbaseTest(__file__).main()
diff --git a/test/functional/mempool_truc.py b/test/functional/mempool_truc.py
index e1f3d77201..3f57b3e356 100755
--- a/test/functional/mempool_truc.py
+++ b/test/functional/mempool_truc.py
@@ -644,4 +644,4 @@ class MempoolTRUC(BitcoinTestFramework):
if __name__ == "__main__":
- MempoolTRUC().main()
+ MempoolTRUC(__file__).main()
diff --git a/test/functional/mempool_unbroadcast.py b/test/functional/mempool_unbroadcast.py
index 12de750731..7c96b4b570 100755
--- a/test/functional/mempool_unbroadcast.py
+++ b/test/functional/mempool_unbroadcast.py
@@ -109,4 +109,4 @@ class MempoolUnbroadcastTest(BitcoinTestFramework):
if __name__ == "__main__":
- MempoolUnbroadcastTest().main()
+ MempoolUnbroadcastTest(__file__).main()
diff --git a/test/functional/mempool_updatefromblock.py b/test/functional/mempool_updatefromblock.py
index 8350e9c91e..1754991756 100755
--- a/test/functional/mempool_updatefromblock.py
+++ b/test/functional/mempool_updatefromblock.py
@@ -103,4 +103,4 @@ class MempoolUpdateFromBlockTest(BitcoinTestFramework):
if __name__ == '__main__':
- MempoolUpdateFromBlockTest().main()
+ MempoolUpdateFromBlockTest(__file__).main()
diff --git a/test/functional/mining_basic.py b/test/functional/mining_basic.py
index 5f2dde8eac..6a364a4815 100755
--- a/test/functional/mining_basic.py
+++ b/test/functional/mining_basic.py
@@ -325,4 +325,4 @@ class MiningTest(BitcoinTestFramework):
if __name__ == '__main__':
- MiningTest().main()
+ MiningTest(__file__).main()
diff --git a/test/functional/mining_getblocktemplate_longpoll.py b/test/functional/mining_getblocktemplate_longpoll.py
index c0e7195c82..2d15151e65 100755
--- a/test/functional/mining_getblocktemplate_longpoll.py
+++ b/test/functional/mining_getblocktemplate_longpoll.py
@@ -73,4 +73,4 @@ class GetBlockTemplateLPTest(BitcoinTestFramework):
assert not thr.is_alive()
if __name__ == '__main__':
- GetBlockTemplateLPTest().main()
+ GetBlockTemplateLPTest(__file__).main()
diff --git a/test/functional/mining_prioritisetransaction.py b/test/functional/mining_prioritisetransaction.py
index c5f34e3ecb..eb55202e16 100755
--- a/test/functional/mining_prioritisetransaction.py
+++ b/test/functional/mining_prioritisetransaction.py
@@ -305,4 +305,4 @@ class PrioritiseTransactionTest(BitcoinTestFramework):
assert template != new_template
if __name__ == '__main__':
- PrioritiseTransactionTest().main()
+ PrioritiseTransactionTest(__file__).main()
diff --git a/test/functional/p2p_1p1c_network.py b/test/functional/p2p_1p1c_network.py
index ea59248506..c3cdb3e0b3 100755
--- a/test/functional/p2p_1p1c_network.py
+++ b/test/functional/p2p_1p1c_network.py
@@ -163,4 +163,4 @@ class PackageRelayTest(BitcoinTestFramework):
if __name__ == '__main__':
- PackageRelayTest().main()
+ PackageRelayTest(__file__).main()
diff --git a/test/functional/p2p_add_connections.py b/test/functional/p2p_add_connections.py
index bd766a279e..886de36fcc 100755
--- a/test/functional/p2p_add_connections.py
+++ b/test/functional/p2p_add_connections.py
@@ -107,4 +107,4 @@ class P2PAddConnections(BitcoinTestFramework):
assert_equal(feeler_conn.last_message["version"].relay, 0)
if __name__ == '__main__':
- P2PAddConnections().main()
+ P2PAddConnections(__file__).main()
diff --git a/test/functional/p2p_addr_relay.py b/test/functional/p2p_addr_relay.py
index d10e47e036..56a9e6a84e 100755
--- a/test/functional/p2p_addr_relay.py
+++ b/test/functional/p2p_addr_relay.py
@@ -441,4 +441,4 @@ class AddrTest(BitcoinTestFramework):
if __name__ == '__main__':
- AddrTest().main()
+ AddrTest(__file__).main()
diff --git a/test/functional/p2p_addrfetch.py b/test/functional/p2p_addrfetch.py
index 3ead653ba6..69cc106341 100755
--- a/test/functional/p2p_addrfetch.py
+++ b/test/functional/p2p_addrfetch.py
@@ -83,4 +83,4 @@ class P2PAddrFetch(BitcoinTestFramework):
if __name__ == '__main__':
- P2PAddrFetch().main()
+ P2PAddrFetch(__file__).main()
diff --git a/test/functional/p2p_addrv2_relay.py b/test/functional/p2p_addrv2_relay.py
index 4ec8e0bc04..d5ded926d3 100755
--- a/test/functional/p2p_addrv2_relay.py
+++ b/test/functional/p2p_addrv2_relay.py
@@ -110,4 +110,4 @@ class AddrTest(BitcoinTestFramework):
if __name__ == '__main__':
- AddrTest().main()
+ AddrTest(__file__).main()
diff --git a/test/functional/p2p_block_sync.py b/test/functional/p2p_block_sync.py
index 6c7f08364e..51bbac1738 100755
--- a/test/functional/p2p_block_sync.py
+++ b/test/functional/p2p_block_sync.py
@@ -34,4 +34,4 @@ class BlockSyncTest(BitcoinTestFramework):
if __name__ == '__main__':
- BlockSyncTest().main()
+ BlockSyncTest(__file__).main()
diff --git a/test/functional/p2p_blockfilters.py b/test/functional/p2p_blockfilters.py
index 680fa9c7fa..88d5aa1408 100755
--- a/test/functional/p2p_blockfilters.py
+++ b/test/functional/p2p_blockfilters.py
@@ -282,4 +282,4 @@ def compute_last_header(prev_header, hashes):
if __name__ == '__main__':
- CompactFiltersTest().main()
+ CompactFiltersTest(__file__).main()
diff --git a/test/functional/p2p_blocksonly.py b/test/functional/p2p_blocksonly.py
index 637644e6e4..b9e6dc9056 100755
--- a/test/functional/p2p_blocksonly.py
+++ b/test/functional/p2p_blocksonly.py
@@ -125,4 +125,4 @@ class P2PBlocksOnly(BitcoinTestFramework):
if __name__ == '__main__':
- P2PBlocksOnly().main()
+ P2PBlocksOnly(__file__).main()
diff --git a/test/functional/p2p_compactblocks.py b/test/functional/p2p_compactblocks.py
index 9e314db110..49cf26d425 100755
--- a/test/functional/p2p_compactblocks.py
+++ b/test/functional/p2p_compactblocks.py
@@ -965,4 +965,4 @@ class CompactBlocksTest(BitcoinTestFramework):
if __name__ == '__main__':
- CompactBlocksTest().main()
+ CompactBlocksTest(__file__).main()
diff --git a/test/functional/p2p_compactblocks_blocksonly.py b/test/functional/p2p_compactblocks_blocksonly.py
index 761cd3a218..b92efc875c 100755
--- a/test/functional/p2p_compactblocks_blocksonly.py
+++ b/test/functional/p2p_compactblocks_blocksonly.py
@@ -127,4 +127,4 @@ class P2PCompactBlocksBlocksOnly(BitcoinTestFramework):
p2p_conn_blocksonly.wait_until(lambda: test_for_cmpctblock(block2))
if __name__ == '__main__':
- P2PCompactBlocksBlocksOnly().main()
+ P2PCompactBlocksBlocksOnly(__file__).main()
diff --git a/test/functional/p2p_compactblocks_hb.py b/test/functional/p2p_compactblocks_hb.py
index 023b33ff6d..e4f58e9cf7 100755
--- a/test/functional/p2p_compactblocks_hb.py
+++ b/test/functional/p2p_compactblocks_hb.py
@@ -97,4 +97,4 @@ class CompactBlocksConnectionTest(BitcoinTestFramework):
if __name__ == '__main__':
- CompactBlocksConnectionTest().main()
+ CompactBlocksConnectionTest(__file__).main()
diff --git a/test/functional/p2p_disconnect_ban.py b/test/functional/p2p_disconnect_ban.py
index e47f9c732b..94be86475e 100755
--- a/test/functional/p2p_disconnect_ban.py
+++ b/test/functional/p2p_disconnect_ban.py
@@ -147,4 +147,4 @@ class DisconnectBanTest(BitcoinTestFramework):
assert not [node for node in self.nodes[0].getpeerinfo() if node['id'] == id1]
if __name__ == '__main__':
- DisconnectBanTest().main()
+ DisconnectBanTest(__file__).main()
diff --git a/test/functional/p2p_dns_seeds.py b/test/functional/p2p_dns_seeds.py
index e58ad8e0fc..a2d4ea110f 100755
--- a/test/functional/p2p_dns_seeds.py
+++ b/test/functional/p2p_dns_seeds.py
@@ -126,4 +126,4 @@ class P2PDNSSeeds(BitcoinTestFramework):
if __name__ == '__main__':
- P2PDNSSeeds().main()
+ P2PDNSSeeds(__file__).main()
diff --git a/test/functional/p2p_dos_header_tree.py b/test/functional/p2p_dos_header_tree.py
index 4b4346af49..fbb5d716f5 100755
--- a/test/functional/p2p_dos_header_tree.py
+++ b/test/functional/p2p_dos_header_tree.py
@@ -85,4 +85,4 @@ class RejectLowDifficultyHeadersTest(BitcoinTestFramework):
if __name__ == '__main__':
- RejectLowDifficultyHeadersTest().main()
+ RejectLowDifficultyHeadersTest(__file__).main()
diff --git a/test/functional/p2p_eviction.py b/test/functional/p2p_eviction.py
index 8b31dfa549..0d2bdcc429 100755
--- a/test/functional/p2p_eviction.py
+++ b/test/functional/p2p_eviction.py
@@ -124,4 +124,4 @@ class P2PEvict(BitcoinTestFramework):
if __name__ == '__main__':
- P2PEvict().main()
+ P2PEvict(__file__).main()
diff --git a/test/functional/p2p_feefilter.py b/test/functional/p2p_feefilter.py
index bcba534f9a..6b44118467 100755
--- a/test/functional/p2p_feefilter.py
+++ b/test/functional/p2p_feefilter.py
@@ -132,4 +132,4 @@ class FeeFilterTest(BitcoinTestFramework):
if __name__ == '__main__':
- FeeFilterTest().main()
+ FeeFilterTest(__file__).main()
diff --git a/test/functional/p2p_filter.py b/test/functional/p2p_filter.py
index 7c8ed58e51..e4aaf507cf 100755
--- a/test/functional/p2p_filter.py
+++ b/test/functional/p2p_filter.py
@@ -252,4 +252,4 @@ class FilterTest(BitcoinTestFramework):
if __name__ == '__main__':
- FilterTest().main()
+ FilterTest(__file__).main()
diff --git a/test/functional/p2p_fingerprint.py b/test/functional/p2p_fingerprint.py
index e8bba8555f..f49be62056 100755
--- a/test/functional/p2p_fingerprint.py
+++ b/test/functional/p2p_fingerprint.py
@@ -130,4 +130,4 @@ class P2PFingerprintTest(BitcoinTestFramework):
if __name__ == '__main__':
- P2PFingerprintTest().main()
+ P2PFingerprintTest(__file__).main()
diff --git a/test/functional/p2p_getaddr_caching.py b/test/functional/p2p_getaddr_caching.py
index 60b43c32ae..6626b14ee0 100755
--- a/test/functional/p2p_getaddr_caching.py
+++ b/test/functional/p2p_getaddr_caching.py
@@ -119,4 +119,4 @@ class AddrTest(BitcoinTestFramework):
if __name__ == '__main__':
- AddrTest().main()
+ AddrTest(__file__).main()
diff --git a/test/functional/p2p_getdata.py b/test/functional/p2p_getdata.py
index 89d68d5ba0..6153d08d9b 100755
--- a/test/functional/p2p_getdata.py
+++ b/test/functional/p2p_getdata.py
@@ -46,4 +46,4 @@ class GetdataTest(BitcoinTestFramework):
if __name__ == '__main__':
- GetdataTest().main()
+ GetdataTest(__file__).main()
diff --git a/test/functional/p2p_handshake.py b/test/functional/p2p_handshake.py
index 9536e74893..18307a2824 100755
--- a/test/functional/p2p_handshake.py
+++ b/test/functional/p2p_handshake.py
@@ -97,4 +97,4 @@ class P2PHandshakeTest(BitcoinTestFramework):
if __name__ == '__main__':
- P2PHandshakeTest().main()
+ P2PHandshakeTest(__file__).main()
diff --git a/test/functional/p2p_headers_sync_with_minchainwork.py b/test/functional/p2p_headers_sync_with_minchainwork.py
index 832fd7e0e9..9055232cf3 100755
--- a/test/functional/p2p_headers_sync_with_minchainwork.py
+++ b/test/functional/p2p_headers_sync_with_minchainwork.py
@@ -162,4 +162,4 @@ class RejectLowDifficultyHeadersTest(BitcoinTestFramework):
if __name__ == '__main__':
- RejectLowDifficultyHeadersTest().main()
+ RejectLowDifficultyHeadersTest(__file__).main()
diff --git a/test/functional/p2p_i2p_ports.py b/test/functional/p2p_i2p_ports.py
index 20dcb50a57..b1a3c61c7a 100755
--- a/test/functional/p2p_i2p_ports.py
+++ b/test/functional/p2p_i2p_ports.py
@@ -32,4 +32,4 @@ class I2PPorts(BitcoinTestFramework):
if __name__ == '__main__':
- I2PPorts().main()
+ I2PPorts(__file__).main()
diff --git a/test/functional/p2p_i2p_sessions.py b/test/functional/p2p_i2p_sessions.py
index 9e7fdc6e14..67474f6c0e 100755
--- a/test/functional/p2p_i2p_sessions.py
+++ b/test/functional/p2p_i2p_sessions.py
@@ -33,4 +33,4 @@ class I2PSessions(BitcoinTestFramework):
if __name__ == '__main__':
- I2PSessions().main()
+ I2PSessions(__file__).main()
diff --git a/test/functional/p2p_ibd_stalling.py b/test/functional/p2p_ibd_stalling.py
index 830f374d63..11cd8837f4 100755
--- a/test/functional/p2p_ibd_stalling.py
+++ b/test/functional/p2p_ibd_stalling.py
@@ -162,4 +162,4 @@ class P2PIBDStallingTest(BitcoinTestFramework):
if __name__ == '__main__':
- P2PIBDStallingTest().main()
+ P2PIBDStallingTest(__file__).main()
diff --git a/test/functional/p2p_ibd_txrelay.py b/test/functional/p2p_ibd_txrelay.py
index b93e39a925..882f5b5c13 100755
--- a/test/functional/p2p_ibd_txrelay.py
+++ b/test/functional/p2p_ibd_txrelay.py
@@ -86,4 +86,4 @@ class P2PIBDTxRelayTest(BitcoinTestFramework):
peer_txer.send_and_ping(msg_tx(tx))
if __name__ == '__main__':
- P2PIBDTxRelayTest().main()
+ P2PIBDTxRelayTest(__file__).main()
diff --git a/test/functional/p2p_initial_headers_sync.py b/test/functional/p2p_initial_headers_sync.py
index bc6e0fb355..5c17b75677 100755
--- a/test/functional/p2p_initial_headers_sync.py
+++ b/test/functional/p2p_initial_headers_sync.py
@@ -96,5 +96,5 @@ class HeadersSyncTest(BitcoinTestFramework):
self.log.info("Success!")
if __name__ == '__main__':
- HeadersSyncTest().main()
+ HeadersSyncTest(__file__).main()
diff --git a/test/functional/p2p_invalid_block.py b/test/functional/p2p_invalid_block.py
index 8ec62ae5ee..c4c79dcbb8 100755
--- a/test/functional/p2p_invalid_block.py
+++ b/test/functional/p2p_invalid_block.py
@@ -138,4 +138,4 @@ class InvalidBlockRequestTest(BitcoinTestFramework):
if __name__ == '__main__':
- InvalidBlockRequestTest().main()
+ InvalidBlockRequestTest(__file__).main()
diff --git a/test/functional/p2p_invalid_locator.py b/test/functional/p2p_invalid_locator.py
index 32a23532a2..bde01d5c95 100755
--- a/test/functional/p2p_invalid_locator.py
+++ b/test/functional/p2p_invalid_locator.py
@@ -39,4 +39,4 @@ class InvalidLocatorTest(BitcoinTestFramework):
if __name__ == '__main__':
- InvalidLocatorTest().main()
+ InvalidLocatorTest(__file__).main()
diff --git a/test/functional/p2p_invalid_messages.py b/test/functional/p2p_invalid_messages.py
index 8e459ba676..507393fb70 100755
--- a/test/functional/p2p_invalid_messages.py
+++ b/test/functional/p2p_invalid_messages.py
@@ -356,4 +356,4 @@ class InvalidMessagesTest(BitcoinTestFramework):
if __name__ == '__main__':
- InvalidMessagesTest().main()
+ InvalidMessagesTest(__file__).main()
diff --git a/test/functional/p2p_invalid_tx.py b/test/functional/p2p_invalid_tx.py
index 0ae05d4b0b..241aefab24 100755
--- a/test/functional/p2p_invalid_tx.py
+++ b/test/functional/p2p_invalid_tx.py
@@ -224,4 +224,4 @@ class InvalidTxRequestTest(BitcoinTestFramework):
if __name__ == '__main__':
- InvalidTxRequestTest().main()
+ InvalidTxRequestTest(__file__).main()
diff --git a/test/functional/p2p_leak.py b/test/functional/p2p_leak.py
index 645488f24d..f800e815d8 100755
--- a/test/functional/p2p_leak.py
+++ b/test/functional/p2p_leak.py
@@ -178,4 +178,4 @@ class P2PLeakTest(BitcoinTestFramework):
if __name__ == '__main__':
- P2PLeakTest().main()
+ P2PLeakTest(__file__).main()
diff --git a/test/functional/p2p_leak_tx.py b/test/functional/p2p_leak_tx.py
index f53f98e06d..a2eec49b72 100755
--- a/test/functional/p2p_leak_tx.py
+++ b/test/functional/p2p_leak_tx.py
@@ -104,4 +104,4 @@ class P2PLeakTxTest(BitcoinTestFramework):
if __name__ == '__main__':
- P2PLeakTxTest().main()
+ P2PLeakTxTest(__file__).main()
diff --git a/test/functional/p2p_message_capture.py b/test/functional/p2p_message_capture.py
index 691a0b6409..4c82adc58c 100755
--- a/test/functional/p2p_message_capture.py
+++ b/test/functional/p2p_message_capture.py
@@ -69,4 +69,4 @@ class MessageCaptureTest(BitcoinTestFramework):
if __name__ == '__main__':
- MessageCaptureTest().main()
+ MessageCaptureTest(__file__).main()
diff --git a/test/functional/p2p_mutated_blocks.py b/test/functional/p2p_mutated_blocks.py
index 708b19b1e5..4a790168da 100755
--- a/test/functional/p2p_mutated_blocks.py
+++ b/test/functional/p2p_mutated_blocks.py
@@ -112,4 +112,4 @@ class MutatedBlocksTest(BitcoinTestFramework):
if __name__ == '__main__':
- MutatedBlocksTest().main()
+ MutatedBlocksTest(__file__).main()
diff --git a/test/functional/p2p_net_deadlock.py b/test/functional/p2p_net_deadlock.py
index 1a357b944b..4f1b731e21 100755
--- a/test/functional/p2p_net_deadlock.py
+++ b/test/functional/p2p_net_deadlock.py
@@ -34,4 +34,4 @@ class NetDeadlockTest(BitcoinTestFramework):
if __name__ == '__main__':
- NetDeadlockTest().main()
+ NetDeadlockTest(__file__).main()
diff --git a/test/functional/p2p_nobloomfilter_messages.py b/test/functional/p2p_nobloomfilter_messages.py
index 507a71b2a9..dd2dc9ae69 100755
--- a/test/functional/p2p_nobloomfilter_messages.py
+++ b/test/functional/p2p_nobloomfilter_messages.py
@@ -45,4 +45,4 @@ class P2PNoBloomFilterMessages(BitcoinTestFramework):
if __name__ == '__main__':
- P2PNoBloomFilterMessages().main()
+ P2PNoBloomFilterMessages(__file__).main()
diff --git a/test/functional/p2p_node_network_limited.py b/test/functional/p2p_node_network_limited.py
index 8b63d8ee26..df6e6a2e28 100755
--- a/test/functional/p2p_node_network_limited.py
+++ b/test/functional/p2p_node_network_limited.py
@@ -172,4 +172,4 @@ class NodeNetworkLimitedTest(BitcoinTestFramework):
self.test_avoid_requesting_historical_blocks()
if __name__ == '__main__':
- NodeNetworkLimitedTest().main()
+ NodeNetworkLimitedTest(__file__).main()
diff --git a/test/functional/p2p_opportunistic_1p1c.py b/test/functional/p2p_opportunistic_1p1c.py
index aec6e95fbc..4477046c8d 100755
--- a/test/functional/p2p_opportunistic_1p1c.py
+++ b/test/functional/p2p_opportunistic_1p1c.py
@@ -412,4 +412,4 @@ class PackageRelayTest(BitcoinTestFramework):
if __name__ == '__main__':
- PackageRelayTest().main()
+ PackageRelayTest(__file__).main()
diff --git a/test/functional/p2p_orphan_handling.py b/test/functional/p2p_orphan_handling.py
index f525d87cca..22600bf8a4 100755
--- a/test/functional/p2p_orphan_handling.py
+++ b/test/functional/p2p_orphan_handling.py
@@ -585,4 +585,4 @@ class OrphanHandlingTest(BitcoinTestFramework):
if __name__ == '__main__':
- OrphanHandlingTest().main()
+ OrphanHandlingTest(__file__).main()
diff --git a/test/functional/p2p_outbound_eviction.py b/test/functional/p2p_outbound_eviction.py
index 8d89688999..30ac85e32f 100755
--- a/test/functional/p2p_outbound_eviction.py
+++ b/test/functional/p2p_outbound_eviction.py
@@ -250,4 +250,4 @@ class P2POutEvict(BitcoinTestFramework):
if __name__ == '__main__':
- P2POutEvict().main()
+ P2POutEvict(__file__).main()
diff --git a/test/functional/p2p_permissions.py b/test/functional/p2p_permissions.py
index 80a27943fd..5ca5101613 100755
--- a/test/functional/p2p_permissions.py
+++ b/test/functional/p2p_permissions.py
@@ -147,4 +147,4 @@ class P2PPermissionsTests(BitcoinTestFramework):
if __name__ == '__main__':
- P2PPermissionsTests().main()
+ P2PPermissionsTests(__file__).main()
diff --git a/test/functional/p2p_ping.py b/test/functional/p2p_ping.py
index 3ba30a42b1..5c10ac2a4b 100755
--- a/test/functional/p2p_ping.py
+++ b/test/functional/p2p_ping.py
@@ -117,4 +117,4 @@ class PingPongTest(BitcoinTestFramework):
if __name__ == '__main__':
- PingPongTest().main()
+ PingPongTest(__file__).main()
diff --git a/test/functional/p2p_segwit.py b/test/functional/p2p_segwit.py
index d20cf41a72..9be53d2ab8 100755
--- a/test/functional/p2p_segwit.py
+++ b/test/functional/p2p_segwit.py
@@ -2067,4 +2067,4 @@ class SegWitTest(BitcoinTestFramework):
if __name__ == '__main__':
- SegWitTest().main()
+ SegWitTest(__file__).main()
diff --git a/test/functional/p2p_sendheaders.py b/test/functional/p2p_sendheaders.py
index 5c463267a1..db706556d8 100755
--- a/test/functional/p2p_sendheaders.py
+++ b/test/functional/p2p_sendheaders.py
@@ -568,4 +568,4 @@ class SendHeadersTest(BitcoinTestFramework):
assert "getdata" not in inv_node.last_message
if __name__ == '__main__':
- SendHeadersTest().main()
+ SendHeadersTest(__file__).main()
diff --git a/test/functional/p2p_sendtxrcncl.py b/test/functional/p2p_sendtxrcncl.py
index 8f5e6c0387..2c7216b5ca 100755
--- a/test/functional/p2p_sendtxrcncl.py
+++ b/test/functional/p2p_sendtxrcncl.py
@@ -232,4 +232,4 @@ class SendTxRcnclTest(BitcoinTestFramework):
if __name__ == '__main__':
- SendTxRcnclTest().main()
+ SendTxRcnclTest(__file__).main()
diff --git a/test/functional/p2p_timeouts.py b/test/functional/p2p_timeouts.py
index 80d7b6e9ae..1fd78e163b 100755
--- a/test/functional/p2p_timeouts.py
+++ b/test/functional/p2p_timeouts.py
@@ -109,4 +109,4 @@ class TimeoutsTest(BitcoinTestFramework):
if __name__ == '__main__':
- TimeoutsTest().main()
+ TimeoutsTest(__file__).main()
diff --git a/test/functional/p2p_tx_download.py b/test/functional/p2p_tx_download.py
index 0af6b1d2c9..11b4d9cc3b 100755
--- a/test/functional/p2p_tx_download.py
+++ b/test/functional/p2p_tx_download.py
@@ -306,4 +306,4 @@ class TxDownloadTest(BitcoinTestFramework):
if __name__ == '__main__':
- TxDownloadTest().main()
+ TxDownloadTest(__file__).main()
diff --git a/test/functional/p2p_tx_privacy.py b/test/functional/p2p_tx_privacy.py
index e674f6c3eb..afe9df8a0f 100755
--- a/test/functional/p2p_tx_privacy.py
+++ b/test/functional/p2p_tx_privacy.py
@@ -74,4 +74,4 @@ class TxPrivacyTest(BitcoinTestFramework):
spy.wait_for_inv_match(CInv(MSG_WTX, tx2.calc_sha256(True)))
if __name__ == '__main__':
- TxPrivacyTest().main()
+ TxPrivacyTest(__file__).main()
diff --git a/test/functional/p2p_unrequested_blocks.py b/test/functional/p2p_unrequested_blocks.py
index 776eaf5255..835ecbf184 100755
--- a/test/functional/p2p_unrequested_blocks.py
+++ b/test/functional/p2p_unrequested_blocks.py
@@ -296,4 +296,4 @@ class AcceptBlockTest(BitcoinTestFramework):
self.log.info("Successfully synced nodes 1 and 0")
if __name__ == '__main__':
- AcceptBlockTest().main()
+ AcceptBlockTest(__file__).main()
diff --git a/test/functional/p2p_v2_encrypted.py b/test/functional/p2p_v2_encrypted.py
index 05755dece0..3e8ce09d24 100755
--- a/test/functional/p2p_v2_encrypted.py
+++ b/test/functional/p2p_v2_encrypted.py
@@ -131,4 +131,4 @@ class P2PEncrypted(BitcoinTestFramework):
if __name__ == '__main__':
- P2PEncrypted().main()
+ P2PEncrypted(__file__).main()
diff --git a/test/functional/p2p_v2_misbehaving.py b/test/functional/p2p_v2_misbehaving.py
index 9017ee9455..b66d0289ff 100755
--- a/test/functional/p2p_v2_misbehaving.py
+++ b/test/functional/p2p_v2_misbehaving.py
@@ -185,4 +185,4 @@ class EncryptedP2PMisbehaving(BitcoinTestFramework):
if __name__ == '__main__':
- EncryptedP2PMisbehaving().main()
+ EncryptedP2PMisbehaving(__file__).main()
diff --git a/test/functional/p2p_v2_transport.py b/test/functional/p2p_v2_transport.py
index fe2449124d..94c91906e6 100755
--- a/test/functional/p2p_v2_transport.py
+++ b/test/functional/p2p_v2_transport.py
@@ -168,4 +168,4 @@ class V2TransportTest(BitcoinTestFramework):
if __name__ == '__main__':
- V2TransportTest().main()
+ V2TransportTest(__file__).main()
diff --git a/test/functional/rpc_bind.py b/test/functional/rpc_bind.py
index 3106419e5c..8c76c1f5f5 100755
--- a/test/functional/rpc_bind.py
+++ b/test/functional/rpc_bind.py
@@ -124,4 +124,4 @@ class RPCBindTest(BitcoinTestFramework):
assert_raises_rpc_error(-342, "non-JSON HTTP response with '403 Forbidden' from server", self.run_allowip_test, ['1.1.1.1'], self.non_loopback_ip, self.defaultport)
if __name__ == '__main__':
- RPCBindTest().main()
+ RPCBindTest(__file__).main()
diff --git a/test/functional/rpc_blockchain.py b/test/functional/rpc_blockchain.py
index 9b7743cafa..e5aca7f138 100755
--- a/test/functional/rpc_blockchain.py
+++ b/test/functional/rpc_blockchain.py
@@ -635,4 +635,4 @@ class BlockchainTest(BitcoinTestFramework):
if __name__ == '__main__':
- BlockchainTest().main()
+ BlockchainTest(__file__).main()
diff --git a/test/functional/rpc_createmultisig.py b/test/functional/rpc_createmultisig.py
index 37656341d2..9f4e17a328 100755
--- a/test/functional/rpc_createmultisig.py
+++ b/test/functional/rpc_createmultisig.py
@@ -257,4 +257,4 @@ class RpcCreateMultiSigTest(BitcoinTestFramework):
if __name__ == '__main__':
- RpcCreateMultiSigTest().main()
+ RpcCreateMultiSigTest(__file__).main()
diff --git a/test/functional/rpc_decodescript.py b/test/functional/rpc_decodescript.py
index f37e61ab50..66dbd78573 100755
--- a/test/functional/rpc_decodescript.py
+++ b/test/functional/rpc_decodescript.py
@@ -289,4 +289,4 @@ class DecodeScriptTest(BitcoinTestFramework):
self.decodescript_miniscript()
if __name__ == '__main__':
- DecodeScriptTest().main()
+ DecodeScriptTest(__file__).main()
diff --git a/test/functional/rpc_deprecated.py b/test/functional/rpc_deprecated.py
index 15c77ed856..4a415d57f5 100755
--- a/test/functional/rpc_deprecated.py
+++ b/test/functional/rpc_deprecated.py
@@ -26,4 +26,4 @@ class DeprecatedRpcTest(BitcoinTestFramework):
self.log.info("No tested deprecated RPC methods")
if __name__ == '__main__':
- DeprecatedRpcTest().main()
+ DeprecatedRpcTest(__file__).main()
diff --git a/test/functional/rpc_deriveaddresses.py b/test/functional/rpc_deriveaddresses.py
index 64994d6bb3..c66d91713f 100755
--- a/test/functional/rpc_deriveaddresses.py
+++ b/test/functional/rpc_deriveaddresses.py
@@ -61,4 +61,4 @@ class DeriveaddressesTest(BitcoinTestFramework):
assert_raises_rpc_error(-5, "Descriptor does not have a corresponding address", self.nodes[0].deriveaddresses, bare_multisig_descriptor)
if __name__ == '__main__':
- DeriveaddressesTest().main()
+ DeriveaddressesTest(__file__).main()
diff --git a/test/functional/rpc_dumptxoutset.py b/test/functional/rpc_dumptxoutset.py
index c92c8da357..0b7c468846 100755
--- a/test/functional/rpc_dumptxoutset.py
+++ b/test/functional/rpc_dumptxoutset.py
@@ -58,4 +58,4 @@ class DumptxoutsetTest(BitcoinTestFramework):
if __name__ == '__main__':
- DumptxoutsetTest().main()
+ DumptxoutsetTest(__file__).main()
diff --git a/test/functional/rpc_estimatefee.py b/test/functional/rpc_estimatefee.py
index 6643799a76..05ceafbe4e 100755
--- a/test/functional/rpc_estimatefee.py
+++ b/test/functional/rpc_estimatefee.py
@@ -52,4 +52,4 @@ class EstimateFeeTest(BitcoinTestFramework):
if __name__ == '__main__':
- EstimateFeeTest().main()
+ EstimateFeeTest(__file__).main()
diff --git a/test/functional/rpc_generate.py b/test/functional/rpc_generate.py
index 3e250925e7..68de900664 100755
--- a/test/functional/rpc_generate.py
+++ b/test/functional/rpc_generate.py
@@ -126,4 +126,4 @@ class RPCGenerateTest(BitcoinTestFramework):
if __name__ == "__main__":
- RPCGenerateTest().main()
+ RPCGenerateTest(__file__).main()
diff --git a/test/functional/rpc_getblockfilter.py b/test/functional/rpc_getblockfilter.py
index b09af9e078..245bcec8e8 100755
--- a/test/functional/rpc_getblockfilter.py
+++ b/test/functional/rpc_getblockfilter.py
@@ -61,4 +61,4 @@ class GetBlockFilterTest(BitcoinTestFramework):
self.nodes[0].getblockfilter, genesis_hash, filter_type)
if __name__ == '__main__':
- GetBlockFilterTest().main()
+ GetBlockFilterTest(__file__).main()
diff --git a/test/functional/rpc_getblockfrompeer.py b/test/functional/rpc_getblockfrompeer.py
index 1ab1023cf1..e309018516 100755
--- a/test/functional/rpc_getblockfrompeer.py
+++ b/test/functional/rpc_getblockfrompeer.py
@@ -154,4 +154,4 @@ class GetBlockFromPeerTest(BitcoinTestFramework):
if __name__ == '__main__':
- GetBlockFromPeerTest().main()
+ GetBlockFromPeerTest(__file__).main()
diff --git a/test/functional/rpc_getblockstats.py b/test/functional/rpc_getblockstats.py
index bf261befcc..d1e4895eb6 100755
--- a/test/functional/rpc_getblockstats.py
+++ b/test/functional/rpc_getblockstats.py
@@ -183,4 +183,4 @@ class GetblockstatsTest(BitcoinTestFramework):
assert_equal(tip_stats["utxo_size_inc_actual"], 300)
if __name__ == '__main__':
- GetblockstatsTest().main()
+ GetblockstatsTest(__file__).main()
diff --git a/test/functional/rpc_getchaintips.py b/test/functional/rpc_getchaintips.py
index 7efa306c8c..1bd4413ce1 100755
--- a/test/functional/rpc_getchaintips.py
+++ b/test/functional/rpc_getchaintips.py
@@ -58,4 +58,4 @@ class GetChainTipsTest (BitcoinTestFramework):
assert_equal (tips[1], shortTip)
if __name__ == '__main__':
- GetChainTipsTest ().main ()
+ GetChainTipsTest(__file__).main()
diff --git a/test/functional/rpc_getdescriptorinfo.py b/test/functional/rpc_getdescriptorinfo.py
index 2eb36f260c..c84928462d 100755
--- a/test/functional/rpc_getdescriptorinfo.py
+++ b/test/functional/rpc_getdescriptorinfo.py
@@ -63,4 +63,4 @@ class DescriptorTest(BitcoinTestFramework):
if __name__ == '__main__':
- DescriptorTest().main()
+ DescriptorTest(__file__).main()
diff --git a/test/functional/rpc_help.py b/test/functional/rpc_help.py
index 53c5aa05e5..4ce24ecb67 100755
--- a/test/functional/rpc_help.py
+++ b/test/functional/rpc_help.py
@@ -132,4 +132,4 @@ class HelpRpcTest(BitcoinTestFramework):
if __name__ == '__main__':
- HelpRpcTest().main()
+ HelpRpcTest(__file__).main()
diff --git a/test/functional/rpc_invalid_address_message.py b/test/functional/rpc_invalid_address_message.py
index 6759b69dd1..f712530c3b 100755
--- a/test/functional/rpc_invalid_address_message.py
+++ b/test/functional/rpc_invalid_address_message.py
@@ -119,4 +119,4 @@ class InvalidAddressErrorMessageTest(BitcoinTestFramework):
if __name__ == '__main__':
- InvalidAddressErrorMessageTest().main()
+ InvalidAddressErrorMessageTest(__file__).main()
diff --git a/test/functional/rpc_invalidateblock.py b/test/functional/rpc_invalidateblock.py
index 69c5397ce2..db79d55259 100755
--- a/test/functional/rpc_invalidateblock.py
+++ b/test/functional/rpc_invalidateblock.py
@@ -90,4 +90,4 @@ class InvalidateTest(BitcoinTestFramework):
if __name__ == '__main__':
- InvalidateTest().main()
+ InvalidateTest(__file__).main()
diff --git a/test/functional/rpc_mempool_info.py b/test/functional/rpc_mempool_info.py
index 246af22e50..231d93a7b1 100755
--- a/test/functional/rpc_mempool_info.py
+++ b/test/functional/rpc_mempool_info.py
@@ -96,4 +96,4 @@ class RPCMempoolInfoTest(BitcoinTestFramework):
if __name__ == '__main__':
- RPCMempoolInfoTest().main()
+ RPCMempoolInfoTest(__file__).main()
diff --git a/test/functional/rpc_misc.py b/test/functional/rpc_misc.py
index 20485c01d3..b5c12b28c1 100755
--- a/test/functional/rpc_misc.py
+++ b/test/functional/rpc_misc.py
@@ -102,4 +102,4 @@ class RpcMiscTest(BitcoinTestFramework):
if __name__ == '__main__':
- RpcMiscTest().main()
+ RpcMiscTest(__file__).main()
diff --git a/test/functional/rpc_named_arguments.py b/test/functional/rpc_named_arguments.py
index 46d9ffceae..0385c33267 100755
--- a/test/functional/rpc_named_arguments.py
+++ b/test/functional/rpc_named_arguments.py
@@ -35,4 +35,4 @@ class NamedArgumentTest(BitcoinTestFramework):
assert_raises_rpc_error(-8, "Parameter arg1 specified twice both as positional and named argument", node.echo, 0, None, 2, arg1=1)
if __name__ == '__main__':
- NamedArgumentTest().main()
+ NamedArgumentTest(__file__).main()
diff --git a/test/functional/rpc_net.py b/test/functional/rpc_net.py
index 37e2c1fb71..b63059b1ee 100755
--- a/test/functional/rpc_net.py
+++ b/test/functional/rpc_net.py
@@ -574,4 +574,4 @@ class NetTest(BitcoinTestFramework):
if __name__ == '__main__':
- NetTest().main()
+ NetTest(__file__).main()
diff --git a/test/functional/rpc_packages.py b/test/functional/rpc_packages.py
index 1acd586d2c..ef2f66b3a0 100755
--- a/test/functional/rpc_packages.py
+++ b/test/functional/rpc_packages.py
@@ -489,4 +489,4 @@ class RPCPackagesTest(BitcoinTestFramework):
assert_equal(node.getrawmempool(), [chained_txns_burn[0]["txid"]])
if __name__ == "__main__":
- RPCPackagesTest().main()
+ RPCPackagesTest(__file__).main()
diff --git a/test/functional/rpc_preciousblock.py b/test/functional/rpc_preciousblock.py
index 3062a86565..224bba6f9b 100755
--- a/test/functional/rpc_preciousblock.py
+++ b/test/functional/rpc_preciousblock.py
@@ -109,4 +109,4 @@ class PreciousTest(BitcoinTestFramework):
assert_equal(self.nodes[2].getbestblockhash(), hashH)
if __name__ == '__main__':
- PreciousTest().main()
+ PreciousTest(__file__).main()
diff --git a/test/functional/rpc_psbt.py b/test/functional/rpc_psbt.py
index a56960adff..8c5f98286a 100755
--- a/test/functional/rpc_psbt.py
+++ b/test/functional/rpc_psbt.py
@@ -985,4 +985,4 @@ class PSBTTest(BitcoinTestFramework):
if __name__ == '__main__':
- PSBTTest().main()
+ PSBTTest(__file__).main()
diff --git a/test/functional/rpc_rawtransaction.py b/test/functional/rpc_rawtransaction.py
index f974a05f7b..aa179e009d 100755
--- a/test/functional/rpc_rawtransaction.py
+++ b/test/functional/rpc_rawtransaction.py
@@ -612,4 +612,4 @@ class RawTransactionsTest(BitcoinTestFramework):
if __name__ == '__main__':
- RawTransactionsTest().main()
+ RawTransactionsTest(__file__).main()
diff --git a/test/functional/rpc_scanblocks.py b/test/functional/rpc_scanblocks.py
index 8b4aebc77a..d05ba09ba5 100755
--- a/test/functional/rpc_scanblocks.py
+++ b/test/functional/rpc_scanblocks.py
@@ -136,4 +136,4 @@ class ScanblocksTest(BitcoinTestFramework):
if __name__ == '__main__':
- ScanblocksTest().main()
+ ScanblocksTest(__file__).main()
diff --git a/test/functional/rpc_scantxoutset.py b/test/functional/rpc_scantxoutset.py
index 9f77f209ef..078a24d577 100755
--- a/test/functional/rpc_scantxoutset.py
+++ b/test/functional/rpc_scantxoutset.py
@@ -131,4 +131,4 @@ class ScantxoutsetTest(BitcoinTestFramework):
if __name__ == "__main__":
- ScantxoutsetTest().main()
+ ScantxoutsetTest(__file__).main()
diff --git a/test/functional/rpc_setban.py b/test/functional/rpc_setban.py
index ba86b278bd..c4e5ebccca 100755
--- a/test/functional/rpc_setban.py
+++ b/test/functional/rpc_setban.py
@@ -75,4 +75,4 @@ class SetBanTests(BitcoinTestFramework):
assert_equal(banned['ban_duration'], 1234)
if __name__ == '__main__':
- SetBanTests().main()
+ SetBanTests(__file__).main()
diff --git a/test/functional/rpc_signer.py b/test/functional/rpc_signer.py
index 488682e959..7dd16ea8fe 100755
--- a/test/functional/rpc_signer.py
+++ b/test/functional/rpc_signer.py
@@ -77,4 +77,4 @@ class RPCSignerTest(BitcoinTestFramework):
assert_equal({'fingerprint': '00000001', 'name': 'trezor_t'} in self.nodes[1].enumeratesigners()['signers'], True)
if __name__ == '__main__':
- RPCSignerTest().main()
+ RPCSignerTest(__file__).main()
diff --git a/test/functional/rpc_signmessagewithprivkey.py b/test/functional/rpc_signmessagewithprivkey.py
index c5df22157d..8e86698781 100755
--- a/test/functional/rpc_signmessagewithprivkey.py
+++ b/test/functional/rpc_signmessagewithprivkey.py
@@ -60,4 +60,4 @@ class SignMessagesWithPrivTest(BitcoinTestFramework):
if __name__ == '__main__':
- SignMessagesWithPrivTest().main()
+ SignMessagesWithPrivTest(__file__).main()
diff --git a/test/functional/rpc_signrawtransactionwithkey.py b/test/functional/rpc_signrawtransactionwithkey.py
index f4fec13495..9dae0ba994 100755
--- a/test/functional/rpc_signrawtransactionwithkey.py
+++ b/test/functional/rpc_signrawtransactionwithkey.py
@@ -143,4 +143,4 @@ class SignRawTransactionWithKeyTest(BitcoinTestFramework):
if __name__ == '__main__':
- SignRawTransactionWithKeyTest().main()
+ SignRawTransactionWithKeyTest(__file__).main()
diff --git a/test/functional/rpc_txoutproof.py b/test/functional/rpc_txoutproof.py
index 60b7ce8d20..387132b680 100755
--- a/test/functional/rpc_txoutproof.py
+++ b/test/functional/rpc_txoutproof.py
@@ -104,4 +104,4 @@ class MerkleBlockTest(BitcoinTestFramework):
# verify that the proofs are invalid
if __name__ == '__main__':
- MerkleBlockTest().main()
+ MerkleBlockTest(__file__).main()
diff --git a/test/functional/rpc_uptime.py b/test/functional/rpc_uptime.py
index f8df59d02a..fdf459953c 100755
--- a/test/functional/rpc_uptime.py
+++ b/test/functional/rpc_uptime.py
@@ -32,4 +32,4 @@ class UptimeTest(BitcoinTestFramework):
if __name__ == '__main__':
- UptimeTest().main()
+ UptimeTest(__file__).main()
diff --git a/test/functional/rpc_users.py b/test/functional/rpc_users.py
index 153493fbab..44187ce790 100755
--- a/test/functional/rpc_users.py
+++ b/test/functional/rpc_users.py
@@ -156,4 +156,4 @@ class HTTPBasicsTest(BitcoinTestFramework):
if __name__ == '__main__':
- HTTPBasicsTest().main()
+ HTTPBasicsTest(__file__).main()
diff --git a/test/functional/rpc_validateaddress.py b/test/functional/rpc_validateaddress.py
index d87ba098c3..dde07e7ead 100755
--- a/test/functional/rpc_validateaddress.py
+++ b/test/functional/rpc_validateaddress.py
@@ -200,4 +200,4 @@ class ValidateAddressMainTest(BitcoinTestFramework):
if __name__ == "__main__":
- ValidateAddressMainTest().main()
+ ValidateAddressMainTest(__file__).main()
diff --git a/test/functional/rpc_whitelist.py b/test/functional/rpc_whitelist.py
index fb404fb479..5f74fe8274 100755
--- a/test/functional/rpc_whitelist.py
+++ b/test/functional/rpc_whitelist.py
@@ -93,4 +93,4 @@ class RPCWhitelistTest(BitcoinTestFramework):
assert_equal(200, rpccall(self.nodes[0], self.strange_users[4], "getblockcount").status)
if __name__ == "__main__":
- RPCWhitelistTest().main()
+ RPCWhitelistTest(__file__).main()
diff --git a/test/functional/test_framework/test_framework.py b/test/functional/test_framework/test_framework.py
index 9e44a11143..3887cc8545 100755
--- a/test/functional/test_framework/test_framework.py
+++ b/test/functional/test_framework/test_framework.py
@@ -92,7 +92,7 @@ class BitcoinTestFramework(metaclass=BitcoinTestMetaClass):
This class also contains various public and private helper methods."""
- def __init__(self) -> None:
+ def __init__(self, test_file) -> None:
"""Sets test framework defaults. Do not override this method. Instead, override the set_test_params() method"""
self.chain: str = 'regtest'
self.setup_clean_chain: bool = False
diff --git a/test/functional/tool_signet_miner.py b/test/functional/tool_signet_miner.py
index 1ad2a579bf..bdefb92ae6 100755
--- a/test/functional/tool_signet_miner.py
+++ b/test/functional/tool_signet_miner.py
@@ -62,4 +62,4 @@ class SignetMinerTest(BitcoinTestFramework):
if __name__ == "__main__":
- SignetMinerTest().main()
+ SignetMinerTest(__file__).main()
diff --git a/test/functional/tool_wallet.py b/test/functional/tool_wallet.py
index dcf74f6075..784a769882 100755
--- a/test/functional/tool_wallet.py
+++ b/test/functional/tool_wallet.py
@@ -563,4 +563,4 @@ class ToolWalletTest(BitcoinTestFramework):
self.test_dump_very_large_records()
if __name__ == '__main__':
- ToolWalletTest().main()
+ ToolWalletTest(__file__).main()
diff --git a/test/functional/wallet_abandonconflict.py b/test/functional/wallet_abandonconflict.py
index dda48aae1b..ce0f4d099b 100755
--- a/test/functional/wallet_abandonconflict.py
+++ b/test/functional/wallet_abandonconflict.py
@@ -241,4 +241,4 @@ class AbandonConflictTest(BitcoinTestFramework):
assert_equal(newbalance, balance - Decimal("20"))
if __name__ == '__main__':
- AbandonConflictTest().main()
+ AbandonConflictTest(__file__).main()
diff --git a/test/functional/wallet_address_types.py b/test/functional/wallet_address_types.py
index 6b27b32dea..e326d3e89e 100755
--- a/test/functional/wallet_address_types.py
+++ b/test/functional/wallet_address_types.py
@@ -387,4 +387,4 @@ class AddressTypeTest(BitcoinTestFramework):
assert_raises_rpc_error(-8, "Legacy wallets cannot provide bech32m addresses", self.nodes[0].getrawchangeaddress, "bech32m")
if __name__ == '__main__':
- AddressTypeTest().main()
+ AddressTypeTest(__file__).main()
diff --git a/test/functional/wallet_assumeutxo.py b/test/functional/wallet_assumeutxo.py
index 30396da015..0bce2f137c 100755
--- a/test/functional/wallet_assumeutxo.py
+++ b/test/functional/wallet_assumeutxo.py
@@ -164,4 +164,4 @@ class AssumeutxoTest(BitcoinTestFramework):
if __name__ == '__main__':
- AssumeutxoTest().main()
+ AssumeutxoTest(__file__).main()
diff --git a/test/functional/wallet_avoid_mixing_output_types.py b/test/functional/wallet_avoid_mixing_output_types.py
index 66fbf780e5..146b3df3f4 100755
--- a/test/functional/wallet_avoid_mixing_output_types.py
+++ b/test/functional/wallet_avoid_mixing_output_types.py
@@ -177,4 +177,4 @@ class AddressInputTypeGrouping(BitcoinTestFramework):
if __name__ == '__main__':
- AddressInputTypeGrouping().main()
+ AddressInputTypeGrouping(__file__).main()
diff --git a/test/functional/wallet_avoidreuse.py b/test/functional/wallet_avoidreuse.py
index 4983bfda7f..bba79d0a25 100755
--- a/test/functional/wallet_avoidreuse.py
+++ b/test/functional/wallet_avoidreuse.py
@@ -381,4 +381,4 @@ class AvoidReuseTest(BitcoinTestFramework):
if __name__ == '__main__':
- AvoidReuseTest().main()
+ AvoidReuseTest(__file__).main()
diff --git a/test/functional/wallet_backup.py b/test/functional/wallet_backup.py
index d03b08bcc4..a639c34377 100755
--- a/test/functional/wallet_backup.py
+++ b/test/functional/wallet_backup.py
@@ -244,4 +244,4 @@ class WalletBackupTest(BitcoinTestFramework):
if __name__ == '__main__':
- WalletBackupTest().main()
+ WalletBackupTest(__file__).main()
diff --git a/test/functional/wallet_backwards_compatibility.py b/test/functional/wallet_backwards_compatibility.py
index ab008a40cd..e71283b928 100755
--- a/test/functional/wallet_backwards_compatibility.py
+++ b/test/functional/wallet_backwards_compatibility.py
@@ -400,4 +400,4 @@ class BackwardsCompatibilityTest(BitcoinTestFramework):
assert_equal(info, addr_info)
if __name__ == '__main__':
- BackwardsCompatibilityTest().main()
+ BackwardsCompatibilityTest(__file__).main()
diff --git a/test/functional/wallet_balance.py b/test/functional/wallet_balance.py
index 2c85773bf3..9da53402a4 100755
--- a/test/functional/wallet_balance.py
+++ b/test/functional/wallet_balance.py
@@ -339,4 +339,4 @@ class WalletTest(BitcoinTestFramework):
assert_equal(tx_info['lastprocessedblock']['hash'], prev_hash)
if __name__ == '__main__':
- WalletTest().main()
+ WalletTest(__file__).main()
diff --git a/test/functional/wallet_basic.py b/test/functional/wallet_basic.py
index 1b2b8ec1f3..c968e4333a 100755
--- a/test/functional/wallet_basic.py
+++ b/test/functional/wallet_basic.py
@@ -818,4 +818,4 @@ class WalletTest(BitcoinTestFramework):
if __name__ == '__main__':
- WalletTest().main()
+ WalletTest(__file__).main()
diff --git a/test/functional/wallet_blank.py b/test/functional/wallet_blank.py
index e646d27005..76f9cb05ee 100755
--- a/test/functional/wallet_blank.py
+++ b/test/functional/wallet_blank.py
@@ -160,4 +160,4 @@ class WalletBlankTest(BitcoinTestFramework):
if __name__ == '__main__':
- WalletBlankTest().main()
+ WalletBlankTest(__file__).main()
diff --git a/test/functional/wallet_bumpfee.py b/test/functional/wallet_bumpfee.py
index 6d45adc823..81c1c8c1b3 100755
--- a/test/functional/wallet_bumpfee.py
+++ b/test/functional/wallet_bumpfee.py
@@ -854,4 +854,4 @@ def test_bumpfee_with_feerate_ignores_walletincrementalrelayfee(self, rbf_node,
if __name__ == "__main__":
- BumpFeeTest().main()
+ BumpFeeTest(__file__).main()
diff --git a/test/functional/wallet_change_address.py b/test/functional/wallet_change_address.py
index f8bfe9eebf..07bab82697 100755
--- a/test/functional/wallet_change_address.py
+++ b/test/functional/wallet_change_address.py
@@ -105,4 +105,4 @@ class WalletChangeAddressTest(BitcoinTestFramework):
self.assert_change_pos(w1, tx, 0)
if __name__ == '__main__':
- WalletChangeAddressTest().main()
+ WalletChangeAddressTest(__file__).main()
diff --git a/test/functional/wallet_coinbase_category.py b/test/functional/wallet_coinbase_category.py
index c2cb0bf3b0..f09ed4913a 100755
--- a/test/functional/wallet_coinbase_category.py
+++ b/test/functional/wallet_coinbase_category.py
@@ -60,4 +60,4 @@ class CoinbaseCategoryTest(BitcoinTestFramework):
self.assert_category("orphan", address, txid, 100)
if __name__ == '__main__':
- CoinbaseCategoryTest().main()
+ CoinbaseCategoryTest(__file__).main()
diff --git a/test/functional/wallet_conflicts.py b/test/functional/wallet_conflicts.py
index 25a95aa954..7a950ffae6 100755
--- a/test/functional/wallet_conflicts.py
+++ b/test/functional/wallet_conflicts.py
@@ -423,4 +423,4 @@ class TxConflicts(BitcoinTestFramework):
carol.unloadwallet()
if __name__ == '__main__':
- TxConflicts().main()
+ TxConflicts(__file__).main()
diff --git a/test/functional/wallet_create_tx.py b/test/functional/wallet_create_tx.py
index 41ddb2bc69..6deb262c9a 100755
--- a/test/functional/wallet_create_tx.py
+++ b/test/functional/wallet_create_tx.py
@@ -129,4 +129,4 @@ class CreateTxWalletTest(BitcoinTestFramework):
if __name__ == '__main__':
- CreateTxWalletTest().main()
+ CreateTxWalletTest(__file__).main()
diff --git a/test/functional/wallet_createwallet.py b/test/functional/wallet_createwallet.py
index 8e07021e03..0232af1658 100755
--- a/test/functional/wallet_createwallet.py
+++ b/test/functional/wallet_createwallet.py
@@ -190,4 +190,4 @@ class CreateWalletTest(BitcoinTestFramework):
if __name__ == '__main__':
- CreateWalletTest().main()
+ CreateWalletTest(__file__).main()
diff --git a/test/functional/wallet_createwalletdescriptor.py b/test/functional/wallet_createwalletdescriptor.py
index 18e1703da3..e8cd914769 100755
--- a/test/functional/wallet_createwalletdescriptor.py
+++ b/test/functional/wallet_createwalletdescriptor.py
@@ -120,4 +120,4 @@ class WalletCreateDescriptorTest(BitcoinTestFramework):
if __name__ == '__main__':
- WalletCreateDescriptorTest().main()
+ WalletCreateDescriptorTest(__file__).main()
diff --git a/test/functional/wallet_crosschain.py b/test/functional/wallet_crosschain.py
index 4c5d7192ae..3505d33e51 100755
--- a/test/functional/wallet_crosschain.py
+++ b/test/functional/wallet_crosschain.py
@@ -62,4 +62,4 @@ class WalletCrossChain(BitcoinTestFramework):
if __name__ == '__main__':
- WalletCrossChain().main()
+ WalletCrossChain(__file__).main()
diff --git a/test/functional/wallet_descriptor.py b/test/functional/wallet_descriptor.py
index cbd3898f92..5e0ee97892 100755
--- a/test/functional/wallet_descriptor.py
+++ b/test/functional/wallet_descriptor.py
@@ -282,4 +282,4 @@ class WalletDescriptorTest(BitcoinTestFramework):
if __name__ == '__main__':
- WalletDescriptorTest().main ()
+ WalletDescriptorTest(__file__).main()
diff --git a/test/functional/wallet_disable.py b/test/functional/wallet_disable.py
index 9c73f7dead..da6e5d408f 100755
--- a/test/functional/wallet_disable.py
+++ b/test/functional/wallet_disable.py
@@ -28,4 +28,4 @@ class DisableWalletTest (BitcoinTestFramework):
if __name__ == '__main__':
- DisableWalletTest().main()
+ DisableWalletTest(__file__).main()
diff --git a/test/functional/wallet_dump.py b/test/functional/wallet_dump.py
index f50aae0c53..3a4f23a124 100755
--- a/test/functional/wallet_dump.py
+++ b/test/functional/wallet_dump.py
@@ -223,4 +223,4 @@ class WalletDumpTest(BitcoinTestFramework):
w3.dumpwallet(self.nodes[0].datadir_path / "w3.dump")
if __name__ == '__main__':
- WalletDumpTest().main()
+ WalletDumpTest(__file__).main()
diff --git a/test/functional/wallet_encryption.py b/test/functional/wallet_encryption.py
index b30634010d..5a5fb3e5be 100755
--- a/test/functional/wallet_encryption.py
+++ b/test/functional/wallet_encryption.py
@@ -102,4 +102,4 @@ class WalletEncryptionTest(BitcoinTestFramework):
if __name__ == '__main__':
- WalletEncryptionTest().main()
+ WalletEncryptionTest(__file__).main()
diff --git a/test/functional/wallet_fallbackfee.py b/test/functional/wallet_fallbackfee.py
index f0740b72fd..1849a602ab 100755
--- a/test/functional/wallet_fallbackfee.py
+++ b/test/functional/wallet_fallbackfee.py
@@ -32,4 +32,4 @@ class WalletRBFTest(BitcoinTestFramework):
assert_raises_rpc_error(-6, "Fee estimation failed", lambda: self.nodes[0].sendmany("", {self.nodes[0].getnewaddress(): 1}))
if __name__ == '__main__':
- WalletRBFTest().main()
+ WalletRBFTest(__file__).main()
diff --git a/test/functional/wallet_fast_rescan.py b/test/functional/wallet_fast_rescan.py
index 1315bccafd..4ac441516e 100755
--- a/test/functional/wallet_fast_rescan.py
+++ b/test/functional/wallet_fast_rescan.py
@@ -99,4 +99,4 @@ class WalletFastRescanTest(BitcoinTestFramework):
if __name__ == '__main__':
- WalletFastRescanTest().main()
+ WalletFastRescanTest(__file__).main()
diff --git a/test/functional/wallet_fundrawtransaction.py b/test/functional/wallet_fundrawtransaction.py
index 07737c273d..827f27b431 100755
--- a/test/functional/wallet_fundrawtransaction.py
+++ b/test/functional/wallet_fundrawtransaction.py
@@ -1523,4 +1523,4 @@ class RawTransactionsTest(BitcoinTestFramework):
wallet.unloadwallet()
if __name__ == '__main__':
- RawTransactionsTest().main()
+ RawTransactionsTest(__file__).main()
diff --git a/test/functional/wallet_gethdkeys.py b/test/functional/wallet_gethdkeys.py
index f09b8c875a..b6edc29fe6 100755
--- a/test/functional/wallet_gethdkeys.py
+++ b/test/functional/wallet_gethdkeys.py
@@ -182,4 +182,4 @@ class WalletGetHDKeyTest(BitcoinTestFramework):
if __name__ == '__main__':
- WalletGetHDKeyTest().main()
+ WalletGetHDKeyTest(__file__).main()
diff --git a/test/functional/wallet_groups.py b/test/functional/wallet_groups.py
index 26477131cf..8d6c96c0e0 100755
--- a/test/functional/wallet_groups.py
+++ b/test/functional/wallet_groups.py
@@ -182,4 +182,4 @@ class WalletGroupTest(BitcoinTestFramework):
if __name__ == '__main__':
- WalletGroupTest().main()
+ WalletGroupTest(__file__).main()
diff --git a/test/functional/wallet_hd.py b/test/functional/wallet_hd.py
index 52161043ea..8f2a5fc78b 100755
--- a/test/functional/wallet_hd.py
+++ b/test/functional/wallet_hd.py
@@ -280,4 +280,4 @@ class WalletHDTest(BitcoinTestFramework):
if __name__ == '__main__':
- WalletHDTest().main()
+ WalletHDTest(__file__).main()
diff --git a/test/functional/wallet_implicitsegwit.py b/test/functional/wallet_implicitsegwit.py
index baa9bafb00..e5787c0304 100755
--- a/test/functional/wallet_implicitsegwit.py
+++ b/test/functional/wallet_implicitsegwit.py
@@ -65,4 +65,4 @@ class ImplicitSegwitTest(BitcoinTestFramework):
check_implicit_transactions(implicit_keys, self.nodes[0])
if __name__ == '__main__':
- ImplicitSegwitTest().main()
+ ImplicitSegwitTest(__file__).main()
diff --git a/test/functional/wallet_import_rescan.py b/test/functional/wallet_import_rescan.py
index 2a9435b370..c5834c15d2 100755
--- a/test/functional/wallet_import_rescan.py
+++ b/test/functional/wallet_import_rescan.py
@@ -338,4 +338,4 @@ class ImportRescanTest(BitcoinTestFramework):
if __name__ == "__main__":
- ImportRescanTest().main()
+ ImportRescanTest(__file__).main()
diff --git a/test/functional/wallet_import_with_label.py b/test/functional/wallet_import_with_label.py
index 0a1fc31ebc..9d01dfa5b7 100755
--- a/test/functional/wallet_import_with_label.py
+++ b/test/functional/wallet_import_with_label.py
@@ -125,4 +125,4 @@ class ImportWithLabel(BitcoinTestFramework):
if __name__ == "__main__":
- ImportWithLabel().main()
+ ImportWithLabel(__file__).main()
diff --git a/test/functional/wallet_importdescriptors.py b/test/functional/wallet_importdescriptors.py
index f9d05a2fe4..6a69377c63 100755
--- a/test/functional/wallet_importdescriptors.py
+++ b/test/functional/wallet_importdescriptors.py
@@ -709,4 +709,4 @@ class ImportDescriptorsTest(BitcoinTestFramework):
assert_equal(temp_wallet.getbalance(), encrypted_wallet.getbalance())
if __name__ == '__main__':
- ImportDescriptorsTest().main()
+ ImportDescriptorsTest(__file__).main()
diff --git a/test/functional/wallet_importmulti.py b/test/functional/wallet_importmulti.py
index 31013f6323..42b470bb97 100755
--- a/test/functional/wallet_importmulti.py
+++ b/test/functional/wallet_importmulti.py
@@ -898,4 +898,4 @@ class ImportMultiTest(BitcoinTestFramework):
if __name__ == '__main__':
- ImportMultiTest().main()
+ ImportMultiTest(__file__).main()
diff --git a/test/functional/wallet_importprunedfunds.py b/test/functional/wallet_importprunedfunds.py
index b3ae22cc44..467fddeb59 100755
--- a/test/functional/wallet_importprunedfunds.py
+++ b/test/functional/wallet_importprunedfunds.py
@@ -143,4 +143,4 @@ class ImportPrunedFundsTest(BitcoinTestFramework):
if __name__ == '__main__':
- ImportPrunedFundsTest().main()
+ ImportPrunedFundsTest(__file__).main()
diff --git a/test/functional/wallet_inactive_hdchains.py b/test/functional/wallet_inactive_hdchains.py
index c6d22ab90b..3b0c09c02b 100755
--- a/test/functional/wallet_inactive_hdchains.py
+++ b/test/functional/wallet_inactive_hdchains.py
@@ -146,4 +146,4 @@ class InactiveHDChainsTest(BitcoinTestFramework):
if __name__ == '__main__':
- InactiveHDChainsTest().main()
+ InactiveHDChainsTest(__file__).main()
diff --git a/test/functional/wallet_keypool.py b/test/functional/wallet_keypool.py
index 6ed8572347..d3b6ca1ed1 100755
--- a/test/functional/wallet_keypool.py
+++ b/test/functional/wallet_keypool.py
@@ -223,4 +223,4 @@ class KeyPoolTest(BitcoinTestFramework):
assert_raises_rpc_error(-4, msg, w2.keypoolrefill, 100)
if __name__ == '__main__':
- KeyPoolTest().main()
+ KeyPoolTest(__file__).main()
diff --git a/test/functional/wallet_keypool_topup.py b/test/functional/wallet_keypool_topup.py
index e1bd85d8a9..25028d87bf 100755
--- a/test/functional/wallet_keypool_topup.py
+++ b/test/functional/wallet_keypool_topup.py
@@ -98,4 +98,4 @@ class KeypoolRestoreTest(BitcoinTestFramework):
if __name__ == '__main__':
- KeypoolRestoreTest().main()
+ KeypoolRestoreTest(__file__).main()
diff --git a/test/functional/wallet_labels.py b/test/functional/wallet_labels.py
index f074339a2b..307e10ae34 100755
--- a/test/functional/wallet_labels.py
+++ b/test/functional/wallet_labels.py
@@ -256,4 +256,4 @@ def change_label(node, address, old_label, new_label):
new_label.verify(node)
if __name__ == '__main__':
- WalletLabelsTest().main()
+ WalletLabelsTest(__file__).main()
diff --git a/test/functional/wallet_listdescriptors.py b/test/functional/wallet_listdescriptors.py
index 712b881322..c9d6c1f190 100755
--- a/test/functional/wallet_listdescriptors.py
+++ b/test/functional/wallet_listdescriptors.py
@@ -136,4 +136,4 @@ class ListDescriptorsTest(BitcoinTestFramework):
if __name__ == '__main__':
- ListDescriptorsTest().main()
+ ListDescriptorsTest(__file__).main()
diff --git a/test/functional/wallet_listreceivedby.py b/test/functional/wallet_listreceivedby.py
index d0f1336a5e..522c7732fe 100755
--- a/test/functional/wallet_listreceivedby.py
+++ b/test/functional/wallet_listreceivedby.py
@@ -263,4 +263,4 @@ class ReceivedByTest(BitcoinTestFramework):
if __name__ == '__main__':
- ReceivedByTest().main()
+ ReceivedByTest(__file__).main()
diff --git a/test/functional/wallet_listsinceblock.py b/test/functional/wallet_listsinceblock.py
index 15214539a9..d777212f96 100755
--- a/test/functional/wallet_listsinceblock.py
+++ b/test/functional/wallet_listsinceblock.py
@@ -505,4 +505,4 @@ class ListSinceBlockTest(BitcoinTestFramework):
if __name__ == '__main__':
- ListSinceBlockTest().main()
+ ListSinceBlockTest(__file__).main()
diff --git a/test/functional/wallet_listtransactions.py b/test/functional/wallet_listtransactions.py
index c820eaa6f6..a9f2066dd1 100755
--- a/test/functional/wallet_listtransactions.py
+++ b/test/functional/wallet_listtransactions.py
@@ -330,4 +330,4 @@ class ListTransactionsTest(BitcoinTestFramework):
if __name__ == '__main__':
- ListTransactionsTest().main()
+ ListTransactionsTest(__file__).main()
diff --git a/test/functional/wallet_migration.py b/test/functional/wallet_migration.py
index 8fdc284d24..b4dc163e34 100755
--- a/test/functional/wallet_migration.py
+++ b/test/functional/wallet_migration.py
@@ -1032,4 +1032,4 @@ class WalletMigrationTest(BitcoinTestFramework):
self.test_blank()
if __name__ == '__main__':
- WalletMigrationTest().main()
+ WalletMigrationTest(__file__).main()
diff --git a/test/functional/wallet_miniscript.py b/test/functional/wallet_miniscript.py
index 67e1283902..064eac499b 100755
--- a/test/functional/wallet_miniscript.py
+++ b/test/functional/wallet_miniscript.py
@@ -401,4 +401,4 @@ class WalletMiniscriptTest(BitcoinTestFramework):
if __name__ == "__main__":
- WalletMiniscriptTest().main()
+ WalletMiniscriptTest(__file__).main()
diff --git a/test/functional/wallet_multisig_descriptor_psbt.py b/test/functional/wallet_multisig_descriptor_psbt.py
index 145912025f..2e0b0d1a41 100755
--- a/test/functional/wallet_multisig_descriptor_psbt.py
+++ b/test/functional/wallet_multisig_descriptor_psbt.py
@@ -154,4 +154,4 @@ class WalletMultisigDescriptorPSBTTest(BitcoinTestFramework):
if __name__ == "__main__":
- WalletMultisigDescriptorPSBTTest().main()
+ WalletMultisigDescriptorPSBTTest(__file__).main()
diff --git a/test/functional/wallet_multiwallet.py b/test/functional/wallet_multiwallet.py
index ee866ee59b..156f4279b4 100755
--- a/test/functional/wallet_multiwallet.py
+++ b/test/functional/wallet_multiwallet.py
@@ -423,4 +423,4 @@ class MultiWalletTest(BitcoinTestFramework):
if __name__ == '__main__':
- MultiWalletTest().main()
+ MultiWalletTest(__file__).main()
diff --git a/test/functional/wallet_orphanedreward.py b/test/functional/wallet_orphanedreward.py
index 451f8abb0a..8a02781f26 100755
--- a/test/functional/wallet_orphanedreward.py
+++ b/test/functional/wallet_orphanedreward.py
@@ -73,4 +73,4 @@ class OrphanedBlockRewardTest(BitcoinTestFramework):
if __name__ == '__main__':
- OrphanedBlockRewardTest().main()
+ OrphanedBlockRewardTest(__file__).main()
diff --git a/test/functional/wallet_pruning.py b/test/functional/wallet_pruning.py
index 6e252b5406..9c34a24be9 100755
--- a/test/functional/wallet_pruning.py
+++ b/test/functional/wallet_pruning.py
@@ -155,4 +155,4 @@ class WalletPruningTest(BitcoinTestFramework):
self.test_wallet_import_pruned_with_missing_blocks(wallet_birthheight_1)
if __name__ == '__main__':
- WalletPruningTest().main()
+ WalletPruningTest(__file__).main()
diff --git a/test/functional/wallet_reindex.py b/test/functional/wallet_reindex.py
index 5388de4b71..6778f76efc 100755
--- a/test/functional/wallet_reindex.py
+++ b/test/functional/wallet_reindex.py
@@ -105,4 +105,4 @@ class WalletReindexTest(BitcoinTestFramework):
if __name__ == '__main__':
- WalletReindexTest().main()
+ WalletReindexTest(__file__).main()
diff --git a/test/functional/wallet_reorgsrestore.py b/test/functional/wallet_reorgsrestore.py
index 4271f3e481..77cf34898b 100755
--- a/test/functional/wallet_reorgsrestore.py
+++ b/test/functional/wallet_reorgsrestore.py
@@ -101,4 +101,4 @@ class ReorgsRestoreTest(BitcoinTestFramework):
assert conflicting["blockhash"] != conflicted_after_reorg["blockhash"]
if __name__ == '__main__':
- ReorgsRestoreTest().main()
+ ReorgsRestoreTest(__file__).main()
diff --git a/test/functional/wallet_rescan_unconfirmed.py b/test/functional/wallet_rescan_unconfirmed.py
index ad9fa081c2..69ad522b5d 100755
--- a/test/functional/wallet_rescan_unconfirmed.py
+++ b/test/functional/wallet_rescan_unconfirmed.py
@@ -80,4 +80,4 @@ class WalletRescanUnconfirmed(BitcoinTestFramework):
assert_equal(w1.gettransaction(tx_child_unconfirmed_sweep["txid"])["confirmations"], 0)
if __name__ == '__main__':
- WalletRescanUnconfirmed().main()
+ WalletRescanUnconfirmed(__file__).main()
diff --git a/test/functional/wallet_resendwallettransactions.py b/test/functional/wallet_resendwallettransactions.py
index f61e1edc1d..49c8ef1c5f 100755
--- a/test/functional/wallet_resendwallettransactions.py
+++ b/test/functional/wallet_resendwallettransactions.py
@@ -149,4 +149,4 @@ class ResendWalletTransactionsTest(BitcoinTestFramework):
if __name__ == '__main__':
- ResendWalletTransactionsTest().main()
+ ResendWalletTransactionsTest(__file__).main()
diff --git a/test/functional/wallet_send.py b/test/functional/wallet_send.py
index bbb0d658d9..2d0aad3b5d 100755
--- a/test/functional/wallet_send.py
+++ b/test/functional/wallet_send.py
@@ -612,4 +612,4 @@ class WalletSendTest(BitcoinTestFramework):
if __name__ == '__main__':
- WalletSendTest().main()
+ WalletSendTest(__file__).main()
diff --git a/test/functional/wallet_sendall.py b/test/functional/wallet_sendall.py
index 1d308c225d..b256b53b38 100755
--- a/test/functional/wallet_sendall.py
+++ b/test/functional/wallet_sendall.py
@@ -531,4 +531,4 @@ class SendallTest(BitcoinTestFramework):
self.sendall_fails_with_transaction_too_large()
if __name__ == '__main__':
- SendallTest().main()
+ SendallTest(__file__).main()
diff --git a/test/functional/wallet_sendmany.py b/test/functional/wallet_sendmany.py
index 5751993143..ad99100590 100755
--- a/test/functional/wallet_sendmany.py
+++ b/test/functional/wallet_sendmany.py
@@ -40,4 +40,4 @@ class SendmanyTest(BitcoinTestFramework):
if __name__ == '__main__':
- SendmanyTest().main()
+ SendmanyTest(__file__).main()
diff --git a/test/functional/wallet_signer.py b/test/functional/wallet_signer.py
index abfc3c1ba1..52b4c390b8 100755
--- a/test/functional/wallet_signer.py
+++ b/test/functional/wallet_signer.py
@@ -263,4 +263,4 @@ class WalletSignerTest(BitcoinTestFramework):
assert_raises_rpc_error(-1, "GetExternalSigner: More than one external signer found", self.nodes[1].createwallet, wallet_name='multi_hww', disable_private_keys=True, descriptors=True, external_signer=True)
if __name__ == '__main__':
- WalletSignerTest().main()
+ WalletSignerTest(__file__).main()
diff --git a/test/functional/wallet_signmessagewithaddress.py b/test/functional/wallet_signmessagewithaddress.py
index 4a4b818bd1..170c883ca4 100755
--- a/test/functional/wallet_signmessagewithaddress.py
+++ b/test/functional/wallet_signmessagewithaddress.py
@@ -45,4 +45,4 @@ class SignMessagesWithAddressTest(BitcoinTestFramework):
if __name__ == '__main__':
- SignMessagesWithAddressTest().main()
+ SignMessagesWithAddressTest(__file__).main()
diff --git a/test/functional/wallet_signrawtransactionwithwallet.py b/test/functional/wallet_signrawtransactionwithwallet.py
index 612a2542e7..eb0e4097fe 100755
--- a/test/functional/wallet_signrawtransactionwithwallet.py
+++ b/test/functional/wallet_signrawtransactionwithwallet.py
@@ -310,4 +310,4 @@ class SignRawTransactionWithWalletTest(BitcoinTestFramework):
if __name__ == '__main__':
- SignRawTransactionWithWalletTest().main()
+ SignRawTransactionWithWalletTest(__file__).main()
diff --git a/test/functional/wallet_simulaterawtx.py b/test/functional/wallet_simulaterawtx.py
index 545aad892c..11b7a4c76e 100755
--- a/test/functional/wallet_simulaterawtx.py
+++ b/test/functional/wallet_simulaterawtx.py
@@ -129,4 +129,4 @@ class SimulateTxTest(BitcoinTestFramework):
assert_raises_rpc_error(-8, "One or more transaction inputs are missing or have been spent already", w2.simulaterawtransaction, [tx1, tx2])
if __name__ == '__main__':
- SimulateTxTest().main()
+ SimulateTxTest(__file__).main()
diff --git a/test/functional/wallet_spend_unconfirmed.py b/test/functional/wallet_spend_unconfirmed.py
index bfcdeaeaa8..4c73e0970b 100755
--- a/test/functional/wallet_spend_unconfirmed.py
+++ b/test/functional/wallet_spend_unconfirmed.py
@@ -505,4 +505,4 @@ class UnconfirmedInputTest(BitcoinTestFramework):
self.test_external_input_unconfirmed_low()
if __name__ == '__main__':
- UnconfirmedInputTest().main()
+ UnconfirmedInputTest(__file__).main()
diff --git a/test/functional/wallet_startup.py b/test/functional/wallet_startup.py
index 2cc4e312af..6feb00af8e 100755
--- a/test/functional/wallet_startup.py
+++ b/test/functional/wallet_startup.py
@@ -58,4 +58,4 @@ class WalletStartupTest(BitcoinTestFramework):
assert_equal(set(self.nodes[0].listwallets()), set(('w2', 'w3')))
if __name__ == '__main__':
- WalletStartupTest().main()
+ WalletStartupTest(__file__).main()
diff --git a/test/functional/wallet_taproot.py b/test/functional/wallet_taproot.py
index a5d7445ce8..a88d84f4c6 100755
--- a/test/functional/wallet_taproot.py
+++ b/test/functional/wallet_taproot.py
@@ -507,4 +507,4 @@ class WalletTaprootTest(BitcoinTestFramework):
)
if __name__ == '__main__':
- WalletTaprootTest().main()
+ WalletTaprootTest(__file__).main()
diff --git a/test/functional/wallet_timelock.py b/test/functional/wallet_timelock.py
index 0a622979a4..6c88438330 100755
--- a/test/functional/wallet_timelock.py
+++ b/test/functional/wallet_timelock.py
@@ -50,4 +50,4 @@ class WalletLocktimeTest(BitcoinTestFramework):
if __name__ == "__main__":
- WalletLocktimeTest().main()
+ WalletLocktimeTest(__file__).main()
diff --git a/test/functional/wallet_transactiontime_rescan.py b/test/functional/wallet_transactiontime_rescan.py
index ea99992084..fb6dc74dc5 100755
--- a/test/functional/wallet_transactiontime_rescan.py
+++ b/test/functional/wallet_transactiontime_rescan.py
@@ -223,4 +223,4 @@ class TransactionTimeRescanTest(BitcoinTestFramework):
assert_equal(encrypted_wallet.getbalance(), temp_wallet.getbalance())
if __name__ == '__main__':
- TransactionTimeRescanTest().main()
+ TransactionTimeRescanTest(__file__).main()
diff --git a/test/functional/wallet_txn_clone.py b/test/functional/wallet_txn_clone.py
index 1f3b6f2ce9..a2dd223aed 100755
--- a/test/functional/wallet_txn_clone.py
+++ b/test/functional/wallet_txn_clone.py
@@ -149,4 +149,4 @@ class TxnMallTest(BitcoinTestFramework):
if __name__ == '__main__':
- TxnMallTest().main()
+ TxnMallTest(__file__).main()
diff --git a/test/functional/wallet_txn_doublespend.py b/test/functional/wallet_txn_doublespend.py
index 3cd0cd3207..3d6830f1f3 100755
--- a/test/functional/wallet_txn_doublespend.py
+++ b/test/functional/wallet_txn_doublespend.py
@@ -138,4 +138,4 @@ class TxnMallTest(BitcoinTestFramework):
if __name__ == '__main__':
- TxnMallTest().main()
+ TxnMallTest(__file__).main()
diff --git a/test/functional/wallet_upgradewallet.py b/test/functional/wallet_upgradewallet.py
index a4f2a9b74d..7d1d244dff 100755
--- a/test/functional/wallet_upgradewallet.py
+++ b/test/functional/wallet_upgradewallet.py
@@ -360,4 +360,4 @@ class UpgradeWalletTest(BitcoinTestFramework):
self.test_upgradewallet(disabled_wallet, previous_version=169900, expected_version=169900)
if __name__ == '__main__':
- UpgradeWalletTest().main()
+ UpgradeWalletTest(__file__).main()
diff --git a/test/functional/wallet_watchonly.py b/test/functional/wallet_watchonly.py
index b473f5d65c..298d50d452 100755
--- a/test/functional/wallet_watchonly.py
+++ b/test/functional/wallet_watchonly.py
@@ -111,4 +111,4 @@ class CreateWalletWatchonlyTest(BitcoinTestFramework):
if __name__ == '__main__':
- CreateWalletWatchonlyTest().main()
+ CreateWalletWatchonlyTest(__file__).main()