Consider the following MRE:
0#!/usr/bin/env python3
1# File: test/functional/MRE.py
2
3from test_framework.test_framework import BitcoinTestFramework
4
5class MRE(BitcoinTestFramework):
6 def set_test_params(self):
7 self.num_nodes = 1
8 self.setup_clean_chain = False # Test succeeds when True.
9
10 def skip_test_if_missing_module(self):
11 self.skip_if_no_wallet()
12
13 def run_test(self):
14 self.log.info("OK")
15
16if __name__ == '__main__':
17 MRE(__file__).main()
On OpenIndiana:
0$ $ env CXXFLAGS="-pthread" cmake -B build -DENABLE_IPC=OFF
1$ cmake --build build
2$ python3.14 ./build/test/functional/MRE.py
32025-12-28T17:43:24.329616Z TestFramework (INFO): PRNG seed is: 2377333319933758475
42025-12-28T17:43:24.331825Z TestFramework (INFO): Initializing test directory /tmp/bitcoin_func_test_f81ll6fk
52025-12-28T17:43:24.627126Z TestFramework (ERROR): Unexpected exception
6Traceback (most recent call last):
7 File "/export/home/hebasto/dev/bitcoin/test/functional/test_framework/test_framework.py", line 138, in main
8 self.setup()
9 ~~~~~~~~~~^^
10 File "/export/home/hebasto/dev/bitcoin/test/functional/test_framework/test_framework.py", line 269, in setup
11 self.setup_network()
12 ~~~~~~~~~~~~~~~~~~^^
13 File "/export/home/hebasto/dev/bitcoin/test/functional/test_framework/test_framework.py", line 360, in setup_network
14 self.setup_nodes()
15 ~~~~~~~~~~~~~~~~^^
16 File "/export/home/hebasto/dev/bitcoin/test/functional/test_framework/test_framework.py", line 384, in setup_nodes
17 self.import_deterministic_coinbase_privkeys()
18 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
19 File "/export/home/hebasto/dev/bitcoin/test/functional/test_framework/test_framework.py", line 401, in import_deterministic_coinbase_privkeys
20 self.init_wallet(node=i)
21 ~~~~~~~~~~~~~~~~^^^^^^^^
22 File "/export/home/hebasto/dev/bitcoin/test/functional/test_framework/test_framework.py", line 408, in init_wallet
23 n.createwallet(wallet_name=wallet_name, load_on_startup=True)
24 ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
25 File "/export/home/hebasto/dev/bitcoin/test/functional/test_framework/coverage.py", line 50, in __call__
26 return_val = self.auth_service_proxy_instance.__call__(*args, **kwargs)
27 File "/export/home/hebasto/dev/bitcoin/test/functional/test_framework/authproxy.py", line 156, in __call__
28 raise JSONRPCException(response['error'], status)
29test_framework.authproxy.JSONRPCException: Wallet file verification failed. SQLiteDatabase: Failed to open database: unable to open database file
30 (-4)
312025-12-28T17:43:24.682846Z TestFramework (INFO): Not stopping nodes as test failed. The dangling processes will be cleaned up later.
322025-12-28T17:43:24.683153Z TestFramework (WARNING): Not cleaning up dir /tmp/bitcoin_func_test_f81ll6fk
332025-12-28T17:43:24.683377Z TestFramework (ERROR): Test failed. Test logging available at /tmp/bitcoin_func_test_f81ll6fk/test_framework.log
342025-12-28T17:43:24.684155Z TestFramework (ERROR):
352025-12-28T17:43:24.684615Z TestFramework (ERROR): Hint: Call /export/home/hebasto/dev/bitcoin/test/functional/combine_logs.py '/tmp/bitcoin_func_test_f81ll6fk' to consolidate all logs
362025-12-28T17:43:24.684729Z TestFramework (ERROR):
372025-12-28T17:43:24.684901Z TestFramework (ERROR): If this failure happened unexpectedly or intermittently, please file a bug and provide a link or upload of the combined log.
382025-12-28T17:43:24.685270Z TestFramework (ERROR): https://github.com/bitcoin/bitcoin/issues
392025-12-28T17:43:24.685378Z TestFramework (ERROR):
40[node 0] Cleaning up leftover process