|
76 | 76 | 'zerocoin_wrapped_serials.py', # ~ 137 sec |
77 | 77 | 'feature_uacomment.py', # ~ 130 sec |
78 | 78 | 'mining_pos_fakestake.py', # ~ 123 sec |
| 79 | + 'wallet_import_stakingaddress.py', # ~ 123 sec |
79 | 80 |
|
80 | 81 | # vv Tests less than 2m vv |
81 | 82 | 'p2p_disconnect_ban.py', # ~ 118 sec |
@@ -261,9 +262,16 @@ def main(): |
261 | 262 | if not args.keepcache: |
262 | 263 | shutil.rmtree("%s/test/cache" % config["environment"]["BUILDDIR"], ignore_errors=True) |
263 | 264 |
|
264 | | - run_tests(test_list, config["environment"]["SRCDIR"], config["environment"]["BUILDDIR"], config["environment"]["EXEEXT"], tmpdir, args.jobs, args.coverage, passon_args, args.combinedlogslen) |
| 265 | + run_tests(test_list, |
| 266 | + config["environment"]["SRCDIR"], |
| 267 | + config["environment"]["BUILDDIR"], |
| 268 | + config["environment"]["EXEEXT"], |
| 269 | + tmpdir, |
| 270 | + args.jobs, args.coverage, |
| 271 | + passon_args, args.combinedlogslen, |
| 272 | + args.keepcache) |
265 | 273 |
|
266 | | -def run_tests(test_list, src_dir, build_dir, exeext, tmpdir, jobs=1, enable_coverage=False, args=[], combined_logs_len=0): |
| 274 | +def run_tests(test_list, src_dir, build_dir, exeext, tmpdir, jobs=1, enable_coverage=False, args=[], combined_logs_len=0, keep_cache=False): |
267 | 275 | # Warn if pivxd is already running (unix only) |
268 | 276 | try: |
269 | 277 | if subprocess.check_output(["pidof", "pivxd"]) is not None: |
@@ -307,7 +315,8 @@ def pingTravis(): |
307 | 315 | sys.stdout.flush() |
308 | 316 | threading.Timer(pingTime, pingTravis).start() |
309 | 317 |
|
310 | | - pingTravis() |
| 318 | + if not keep_cache: |
| 319 | + pingTravis() |
311 | 320 | try: |
312 | 321 | subprocess.check_output([tests_dir + 'create_cache.py'] + flags + ["--tmpdir=%s/cache" % tmpdir]) |
313 | 322 | except subprocess.CalledProcessError as e: |
|
0 commit comments