tests: Use colors and dots in test_runner.py output only if standard output is a terminal -- allows for using the test runner output as input to other programs
parser.add_argument('--ansi',action='store_true',default=sys.stdout.isatty(),help="Use ANSI colors and dots in output (enabled by default when standard output is a TTY)")
parser.add_argument('--combinedlogslen','-c',type=int,default=0,metavar='n',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',help='generate a basic coverage report for the RPC interface')
parser.add_argument('--ci',action='store_true',help='Run checks and code that are usually only enabled in a continuous integration environment')
@ -239,7 +240,14 @@ def main():
parser.add_argument('--tmpdirprefix','-t',default=tempfile.gettempdir(),help="Root directory for datadirs")
parser.add_argument('--failfast',action='store_true',help='stop execution after the first test failure')
parser.add_argument('--filter',help='filter scripts to run by regular expression')
args,unknown_args=parser.parse_known_args()
ifnotargs.ansi:
globalBOLD,GREEN,RED,GREY
BOLD=("","")
GREEN=("","")
RED=("","")
GREY=("","")
# args to be passed on always start with two dashes; tests are the remaining unknown args