This was an oversight of mine in #13188
Can be trivially tested with BITCOIND=bitcoin-qt ./test/functional/wallet_disable.py before and after this fix.
This was an oversight of mine in #13188
Can be trivially tested with BITCOIND=bitcoin-qt ./test/functional/wallet_disable.py before and after this fix.
129 | @@ -130,8 +130,8 @@ def main(self): 130 | self.options.bitcoind = os.getenv("BITCOIND", default=config["environment"]["BUILDDIR"] + '/src/bitcoind' + config["environment"]["EXEEXT"]) 131 | self.options.bitcoincli = os.getenv("BITCOINCLI", default=config["environment"]["BUILDDIR"] + '/src/bitcoin-cli' + config["environment"]["EXEEXT"]) 132 | 133 | - os.environ['PATH'] = config['environment']['BUILDDIR'] + os.pathsep + \ 134 | - config['environment']['BUILDDIR'] + os.path.sep + "qt" + os.pathsep + \ 135 | + os.environ['PATH'] = os.path.join(config['environment']['BUILDDIR'], 'src') + os.pathsep + \
nit to avoid manual string building and os.pathsep duplicate
os.pathsep.join([
os.path.join(config['environment']['BUILDDIR'], 'src'),
os.path.join(config['environment']['BUILDDIR'], 'src', 'qt'),
os.environ['PATH']
])
ACK fa26cf0
tACK fa26cf0 Quickly tested using the method mentioned. master (0b1c0c462edab63cf16f3ed10af8b6769fdc5399):
$ BITCOIND=bitcoin-qt ./test/functional/wallet_disable.py
2018-06-01T08:46:00.933000Z TestFramework (INFO): Initializing test directory /var/folders/tg/m2x9fgs930d8xrf6n6gldrtc0000gn/T/testhf4f1yss
2018-06-01T08:46:01.191000Z TestFramework (ERROR): Assertion failed
Traceback (most recent call last):
File "/bitcoin/test/functional/test_framework/test_framework.py", line 282, in start_nodes
node.wait_for_rpc_connection()
File "/bitcoin/test/functional/test_framework/test_node.py", line 161, in wait_for_rpc_connection
'bitcoind exited with status {} during initialization'.format(self.process.returncode)))
test_framework.test_node.FailedToStartError: [node 0] bitcoind exited with status -6 during initialization
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/bitcoin/test/functional/test_framework/test_framework.py", line 151, in main
self.setup_network()
File "/bitcoin/test/functional/test_framework/test_framework.py", line 222, in setup_network
self.setup_nodes()
File "/bitcoin/test/functional/test_framework/test_framework.py", line 237, in setup_nodes
self.start_nodes()
File "/bitcoin/test/functional/test_framework/test_framework.py", line 285, in start_nodes
self.stop_nodes()
File "/bitcoin/test/functional/test_framework/test_framework.py", line 301, in stop_nodes
node.stop_node()
File "/bitcoin/test/functional/test_framework/test_node.py", line 196, in stop_node
self.stop()
File "/bitcoin/test/functional/test_framework/test_node.py", line 125, in __getattr__
assert self.rpc_connected and self.rpc is not None, self._node_msg("Error: no RPC connection")
AssertionError: [node 0] Error: no RPC connection
2018-06-01T08:46:01.193000Z TestFramework (INFO): Stopping nodes
Traceback (most recent call last):
File "./test/functional/wallet_disable.py", line 34, in <module>
DisableWalletTest ().main ()
File "/bitcoin/test/functional/test_framework/test_framework.py", line 175, in main
self.stop_nodes()
File "/bitcoin/test/functional/test_framework/test_framework.py", line 301, in stop_nodes
node.stop_node()
File "/bitcoin/test/functional/test_framework/test_node.py", line 196, in stop_node
self.stop()
File "/bitcoin/test/functional/test_framework/test_node.py", line 125, in __getattr__
assert self.rpc_connected and self.rpc is not None, self._node_msg("Error: no RPC connection")
AssertionError: [node 0] Error: no RPC connection
[node 0] Cleaning up leftover process
This PR (fa26cf0):
$ BITCOIND=bitcoin-qt ./test/functional/wallet_disable.py
2018-06-01T08:48:51.961000Z TestFramework (INFO): Initializing test directory /var/folders/tg/m2x9fgs930d8xrf6n6gldrtc0000gn/T/testyko2upee
2018-06-01T08:48:52.989000Z TestFramework (INFO): Stopping nodes
2018-06-01T08:48:53.728000Z TestFramework (INFO): Cleaning up /var/folders/tg/m2x9fgs930d8xrf6n6gldrtc0000gn/T/testyko2upee on exit
2018-06-01T08:48:53.728000Z TestFramework (INFO): Tests successful