diff options
author | MarcoFalke <falke.marco@gmail.com> | 2021-04-28 09:55:34 +0200 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2021-04-29 13:03:12 +0200 |
commit | fad6269916dbf8adc14d757a18f19c74e95cf659 (patch) | |
tree | 533e9740ff2b167918fe47ab611912f78ab9b592 /test | |
parent | faecb72c3ca744f1adb77bd910c643cedec3b445 (diff) |
test: Assert that exit code indicates failure
Diffstat (limited to 'test')
-rwxr-xr-x | test/functional/test_framework/test_node.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/functional/test_framework/test_node.py b/test/functional/test_framework/test_node.py index ce9c1bc024..c17c16f797 100755 --- a/test/functional/test_framework/test_node.py +++ b/test/functional/test_framework/test_node.py @@ -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 |