mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-05-20 17:02:14 +02:00
303f8cca0568d2ca77189c4eccdfc7a6913c958d 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:
ACK 303f8cca0568d2ca77189c4eccdfc7a6913c958d
theStack:
Tested ACK 303f8cca0568d2ca77189c4eccdfc7a6913c958d
pablomartin4btc:
re-ACK 303f8cca0568d2ca77189c4eccdfc7a6913c958d
Tree-SHA512: 25396eb2f7e4bf14426399b1eb3d2c988903ab1f3d38a58f1044b67dd7200c11c01686578fb49b0f2943864166c5c9ccbf122b45202a1e723bf3dbf0c90020fa