Changeset View
Changeset View
Standalone View
Standalone View
test/functional/test_runner.py
Show First 20 Lines • Show All 311 Lines • ▼ Show 20 Lines | except (OSError, subprocess.SubprocessError): | ||||
pass | pass | ||||
# Warn if there is a cache directory | # Warn if there is a cache directory | ||||
cache_dir = os.path.join(build_dir, "test", "cache") | cache_dir = os.path.join(build_dir, "test", "cache") | ||||
if os.path.isdir(cache_dir): | if os.path.isdir(cache_dir): | ||||
print("{}WARNING!{} There is a cache directory here: {}. If tests fail unexpectedly, try deleting the cache directory.".format( | print("{}WARNING!{} There is a cache directory here: {}. If tests fail unexpectedly, try deleting the cache directory.".format( | ||||
BOLD[1], BOLD[0], cache_dir)) | BOLD[1], BOLD[0], cache_dir)) | ||||
flags = [os.path.join("--srcdir={}".format(build_dir), "src")] + args | flags = ['--cachedir={}'.format(cache_dir)] + args | ||||
flags.append("--cachedir={}".format(cache_dir)) | |||||
if enable_coverage: | if enable_coverage: | ||||
coverage = RPCCoverage() | coverage = RPCCoverage() | ||||
flags.append(coverage.flag) | flags.append(coverage.flag) | ||||
logging.debug( | logging.debug( | ||||
"Initializing coverage directory at {}".format(coverage.dir)) | "Initializing coverage directory at {}".format(coverage.dir)) | ||||
else: | else: | ||||
coverage = None | coverage = None | ||||
▲ Show 20 Lines • Show All 421 Lines • Show Last 20 Lines |