test: Assert that exit code indicates failure

pull/826/head
MarcoFalke 4 years ago
parent faecb72c3c
commit fad6269916
No known key found for this signature in database
GPG Key ID: CE2B75697E69A548

@ -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…
Cancel
Save