[qa] Refactor test_framework and pull tester
* log to stdout * increase range for p2p and rpc ports * UPPERCASE_CONSTANTS * Stop nodes on CTRL+C
This commit is contained in:
parent
77b637f20e
commit
fabbf6bd62
4 changed files with 56 additions and 50 deletions
qa/rpc-tests/test_framework
|
@ -115,7 +115,7 @@ class BitcoinTestFramework(object):
|
|||
|
||||
if self.options.trace_rpc:
|
||||
import logging
|
||||
logging.basicConfig(level=logging.DEBUG)
|
||||
logging.basicConfig(level=logging.DEBUG, stream=sys.stdout)
|
||||
|
||||
if self.options.coveragedir:
|
||||
enable_coverage(self.options.coveragedir)
|
||||
|
@ -148,6 +148,8 @@ class BitcoinTestFramework(object):
|
|||
except Exception as e:
|
||||
print("Unexpected exception caught during testing: " + repr(e))
|
||||
traceback.print_tb(sys.exc_info()[2])
|
||||
except KeyboardInterrupt as e:
|
||||
print("Exiting after " + repr(e))
|
||||
|
||||
if not self.options.noshutdown:
|
||||
print("Stopping nodes")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue