aboutsummaryrefslogtreecommitdiff
path: root/test/functional
diff options
context:
space:
mode:
authorJoão Barbosa <joao.paulo.barbosa@gmail.com>2017-09-20 15:00:28 +0100
committerJoão Barbosa <joao.paulo.barbosa@gmail.com>2017-09-20 15:38:09 +0100
commitfd8f45fe88c7f34785ee0724b875cf14e8a29e07 (patch)
tree9ca579e875bc237c5ef560b0b0f8bd3b67b16ff1 /test/functional
parent4f7e37e26c5d1ca5421bb070e583aaa6b0c93d03 (diff)
[test] Add restart_node to BitcoinTestFramework
Diffstat (limited to 'test/functional')
-rwxr-xr-xtest/functional/test_framework/test_framework.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/functional/test_framework/test_framework.py b/test/functional/test_framework/test_framework.py
index a53eb51799..381513ab9e 100755
--- a/test/functional/test_framework/test_framework.py
+++ b/test/functional/test_framework/test_framework.py
@@ -273,6 +273,11 @@ class BitcoinTestFramework(object):
# Wait for nodes to stop
node.wait_until_stopped()
+ def restart_node(self, i, extra_args=None):
+ """Stop and start a test node"""
+ self.stop_node(i)
+ self.start_node(i, extra_args)
+
def assert_start_raises_init_error(self, i, extra_args=None, expected_msg=None):
with tempfile.SpooledTemporaryFile(max_size=2**16) as log_stderr:
try: