mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-25 10:43:19 -03:00
test: Assert that exit code indicates failure
This commit is contained in:
parent
faecb72c3c
commit
fad6269916
1 changed files with 1 additions and 0 deletions
|
@ -491,6 +491,7 @@ class TestNode():
|
|||
self.start(extra_args, stdout=log_stdout, stderr=log_stderr, *args, **kwargs)
|
||||
ret = self.process.wait(timeout=self.rpc_timeout)
|
||||
self.log.debug(self._node_msg(f'bitcoind exited with status {ret} during initialization'))
|
||||
assert ret != 0 # Exit code must indicate failure
|
||||
self.running = False
|
||||
self.process = None
|
||||
# Check stderr for expected message
|
||||
|
|
Loading…
Add table
Reference in a new issue