|
|
|
@ -2,7 +2,7 @@
|
|
|
|
|
# Copyright (c) 2018 The Bitcoin Core developers
|
|
|
|
|
# Distributed under the MIT software license, see the accompanying
|
|
|
|
|
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
|
"""Verify that starting bitcoin with -h works as expected."""
|
|
|
|
|
"""Verify that starting litecoin with -h works as expected."""
|
|
|
|
|
import subprocess
|
|
|
|
|
|
|
|
|
|
from test_framework.test_framework import BitcoinTestFramework
|
|
|
|
@ -18,7 +18,7 @@ class HelpTest(BitcoinTestFramework):
|
|
|
|
|
# Don't start the node
|
|
|
|
|
|
|
|
|
|
def run_test(self):
|
|
|
|
|
self.log.info("Start bitcoin with -h for help text")
|
|
|
|
|
self.log.info("Start litecoin with -h for help text")
|
|
|
|
|
self.nodes[0].start(extra_args=['-h'], stderr=subprocess.PIPE, stdout=subprocess.PIPE)
|
|
|
|
|
# Node should exit immediately and output help to stdout.
|
|
|
|
|
ret_code = self.nodes[0].process.wait(timeout=1)
|
|
|
|
@ -28,7 +28,7 @@ class HelpTest(BitcoinTestFramework):
|
|
|
|
|
self.log.info("Help text received: {} (...)".format(output[0:60]))
|
|
|
|
|
self.nodes[0].running = False
|
|
|
|
|
|
|
|
|
|
self.log.info("Start bitcoin with -version for version information")
|
|
|
|
|
self.log.info("Start litecoin with -version for version information")
|
|
|
|
|
self.nodes[0].start(extra_args=['-version'], stderr=subprocess.PIPE, stdout=subprocess.PIPE)
|
|
|
|
|
# Node should exit immediately and output version to stdout.
|
|
|
|
|
ret_code = self.nodes[0].process.wait(timeout=1)
|
|
|
|
|