test: Assert that exit code indicates failure

This commit is contained in:
MarcoFalke 2021-04-28 09:55:34 +02:00
parent faecb72c3c
commit fad6269916
No known key found for this signature in database
GPG key ID: CE2B75697E69A548

View file

@ -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