parser.add_argument('--force','-f',action='store_true',help='run tests even on platforms where they are disabled by default (e.g. windows).')
parser.add_argument('--force','-f',action='store_true',help='run tests even on platforms where they are disabled by default (e.g. windows).')
parser.add_argument('--help','-h','-?',action='store_true',help='print help text and exit')
parser.add_argument('--help','-h','-?',action='store_true',help='print help text and exit')
parser.add_argument('--jobs','-j',type=int,default=4,help='how many test scripts to run in parallel. Default=4.')
parser.add_argument('--jobs','-j',type=int,default=4,help='how many test scripts to run in parallel. Default=4.')
parser.add_argument('--keepcache','-k',action='store_true',help='the default behavior is to flush the cache directory on startup. --keepcache retains the cache from the previous testrun.')
parser.add_argument('--quiet','-q',action='store_true',help='only print results summary and failure logs')
parser.add_argument('--quiet','-q',action='store_true',help='only print results summary and failure logs')
parser.add_argument('--nozmq',action='store_true',help='do not run the zmq tests')
parser.add_argument('--nozmq',action='store_true',help='do not run the zmq tests')
print("%sWARNING!%s There is already a bitcoind process running on this system. Tests may fail unexpectedly due to resource contention!"%(BOLD[1],BOLD[0]))
except(OSError,subprocess.SubprocessError):
pass
# Warn if there is a cache directory
cache_dir="%s/test/cache"%build_dir
ifos.path.isdir(cache_dir):
print("%sWARNING!%s There is a cache directory here: %s. If tests fail unexpectedly, try deleting the cache directory."%(BOLD[1],BOLD[0],cache_dir))