mirror of
https://github.com/dashpay/dash.git
synced 2024-12-27 04:52:59 +01:00
cc2cd7291b
a14dbff39e
Allow multiwallet.py to be used with --usecli (Russell Yanofsky)f6ade9ce1a
[tests] allow tests to be run with --usecli (John Newbery)ff9a363ff7
TestNodeCLI batch emulation (Russell Yanofsky)ca9085afc5
Prevent TestNodeCLI.args mixups (Russell Yanofsky)fcfb952bca
Improve TestNodeCLI output parsing (Russell Yanofsky) Pull request description: Lack of test coverage was pointed out by @jnewbery in https://github.com/bitcoin/bitcoin/pull/11687#discussion_r158133900 Tree-SHA512: 5f10e31abad11a5edab0da4e2515e39547adb6ab9e55e50427ab2eb7ec9a43d6b896b579b15863e5edc9beee7d8bf1c84d9dabd247be0760a1b9ae39e1e8ee02
29 lines
821 B
Python
Executable File
29 lines
821 B
Python
Executable File
#!/usr/bin/env python3
|
|
# Copyright (c) 2016 The Bitcoin Core developers
|
|
# Distributed under the MIT software license, see the accompanying
|
|
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
"""Create a blockchain cache.
|
|
|
|
Creating a cache of the blockchain speeds up test execution when running
|
|
multiple functional tests. This helper script is executed by test_runner when multiple
|
|
tests are being run in parallel.
|
|
"""
|
|
|
|
from test_framework.test_framework import BitcoinTestFramework
|
|
|
|
class CreateCache(BitcoinTestFramework):
|
|
# Test network and test nodes are not required:
|
|
|
|
def set_test_params(self):
|
|
self.num_nodes = 0
|
|
self.supports_cli = True
|
|
|
|
def setup_network(self):
|
|
pass
|
|
|
|
def run_test(self):
|
|
pass
|
|
|
|
if __name__ == '__main__':
|
|
CreateCache().main()
|