mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-07-05 05:02:06 +02:00
303f8cca05
test: fix TestShell initialization and reset() (Brandon Odiwuor) Pull request description: Fixes TestShell initialization issues caused by resolving symlinks and looking for config.ini in the source path instead of the build path after migration to CMake (see https://github.com/bitcoin/bitcoin/issues/31131#issuecomment-2433056070)ebe4cac38b/test/functional/test_framework/test_shell.py (L77)
also fixes https://github.com/bitcoin/bitcoin/issues/31131 **How to test:** ``` $ python3 >>> import sys >>> sys.path.insert(0, "./path/to/bitcoin/build/test/functional") >>> from test_framework.test_shell import TestShell >>> TestShell().setup(num_nodes=2, setup_clean_chain=True) >>> TestShell().shutdown() >>> TestShell.reset() ``` ACKs for top commit: pinheadmz: ACK303f8cca05
theStack: Tested ACK303f8cca05
pablomartin4btc: re-ACK303f8cca05
Tree-SHA512: 25396eb2f7e4bf14426399b1eb3d2c988903ab1f3d38a58f1044b67dd7200c11c01686578fb49b0f2943864166c5c9ccbf122b45202a1e723bf3dbf0c90020fa