diff options
author | John Newbery <john@johnnewbery.com> | 2018-02-07 10:51:13 -0500 |
---|---|---|
committer | John Newbery <john@johnnewbery.com> | 2018-05-09 10:39:31 -0400 |
commit | beee49ba1f17937539aa4b543d5b28a9d76c0f4a (patch) | |
tree | aa446e7a681dd3d971f1ccc8ccf69899d2f8b86e /test/functional/test_framework/test_framework.py | |
parent | e5036715c8f56170e1674f8aa4eb4b54565bb451 (diff) | |
download | bitcoin-beee49ba1f17937539aa4b543d5b28a9d76c0f4a.tar.xz |
[tests] Allow stderr to be tested against specified string
Allow bitcoind's stderr to be tested against a specified string on
shutdown.
Diffstat (limited to 'test/functional/test_framework/test_framework.py')
-rwxr-xr-x | test/functional/test_framework/test_framework.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/test_framework/test_framework.py b/test/functional/test_framework/test_framework.py index bb850740ce..b842e6ef4e 100755 --- a/test/functional/test_framework/test_framework.py +++ b/test/functional/test_framework/test_framework.py @@ -289,9 +289,9 @@ class BitcoinTestFramework(metaclass=BitcoinTestMetaClass): for node in self.nodes: coverage.write_all_rpc_commands(self.options.coveragedir, node.rpc) - def stop_node(self, i): + def stop_node(self, i, expected_stderr=''): """Stop a bitcoind test node""" - self.nodes[i].stop_node() + self.nodes[i].stop_node(expected_stderr) self.nodes[i].wait_until_stopped() def stop_nodes(self): |