Changeset View
Changeset View
Standalone View
Standalone View
test/functional/test_runner.py
Show First 20 Lines • Show All 176 Lines • ▼ Show 20 Lines | def main(): | ||||
# Parse arguments and pass through unrecognised args | # Parse arguments and pass through unrecognised args | ||||
parser = argparse.ArgumentParser(add_help=False, | parser = argparse.ArgumentParser(add_help=False, | ||||
usage='%(prog)s [test_runner.py options] [script options] [scripts]', | usage='%(prog)s [test_runner.py options] [script options] [scripts]', | ||||
description=__doc__, | description=__doc__, | ||||
epilog=''' | epilog=''' | ||||
Help text and arguments for individual test script:''', | Help text and arguments for individual test script:''', | ||||
formatter_class=argparse.ArgumentDefaultsHelpFormatter) | formatter_class=argparse.ArgumentDefaultsHelpFormatter) | ||||
parser.add_argument('--combinedlogslen', '-c', type=int, default=0, | parser.add_argument('--combinedlogslen', '-c', type=int, default=0, metavar='n', | ||||
help='print a combined log (of length n lines) from all test nodes and test framework to the console on failure.') | help='On failure, print a log (of length n lines) to ' | ||||
'the console, combined from the test framework ' | |||||
'and all test nodes.') | |||||
parser.add_argument('--coverage', action='store_true', | parser.add_argument('--coverage', action='store_true', | ||||
help='generate a basic coverage report for the RPC interface') | help='generate a basic coverage report for the RPC interface') | ||||
parser.add_argument( | parser.add_argument( | ||||
'--exclude', '-x', help='specify a comma-separated-list of scripts to exclude.') | '--exclude', '-x', help='specify a comma-separated-list of scripts to exclude.') | ||||
parser.add_argument('--extended', action='store_true', | parser.add_argument('--extended', action='store_true', | ||||
help='run the extended test suite in addition to the basic tests') | help='run the extended test suite in addition to the basic tests') | ||||
parser.add_argument('--cutoff', type=int, default=DEFAULT_EXTENDED_CUTOFF, | parser.add_argument('--cutoff', type=int, default=DEFAULT_EXTENDED_CUTOFF, | ||||
help='set the cutoff runtime for what tests get run') | help='set the cutoff runtime for what tests get run') | ||||
▲ Show 20 Lines • Show All 696 Lines • Show Last 20 Lines |