You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test/functional/test_runner.py
+20-4Lines changed: 20 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -171,6 +171,7 @@ def main():
171
171
parser.add_argument('--force', '-f', action='store_true', help='run tests even on platforms where they are disabled by default (e.g. windows).')
172
172
parser.add_argument('--help', '-h', '-?', action='store_true', help='print help text and exit')
173
173
parser.add_argument('--jobs', '-j', type=int, default=4, help='how many test scripts to run in parallel. Default=4.')
174
+
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.')
174
175
parser.add_argument('--quiet', '-q', action='store_true', help='only print results summary and failure logs')
175
176
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]))
263
+
except (OSError, subprocess.SubprocessError):
264
+
pass
265
+
266
+
# Warn if there is a cache directory
267
+
cache_dir="%s/test/cache"%build_dir
268
+
ifos.path.isdir(cache_dir):
269
+
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))
0 commit comments