Skip to content

Commit 4133401

Browse files
random-zebraFuzzbawls
authored andcommitted
[Tests] Add wallet_import_stakingaddress to test runner
and fix ping message when --keepcache Github-Pull: #1242 Rebased-From: 96bdd3e
1 parent 8ac5cbb commit 4133401

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

test/functional/test_runner.py

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@
7676
'zerocoin_wrapped_serials.py', # ~ 137 sec
7777
'feature_uacomment.py', # ~ 130 sec
7878
'mining_pos_fakestake.py', # ~ 123 sec
79+
'wallet_import_stakingaddress.py', # ~ 123 sec
7980

8081
# vv Tests less than 2m vv
8182
'p2p_disconnect_ban.py', # ~ 118 sec
@@ -261,9 +262,16 @@ def main():
261262
if not args.keepcache:
262263
shutil.rmtree("%s/test/cache" % config["environment"]["BUILDDIR"], ignore_errors=True)
263264

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)
265273

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):
267275
# Warn if pivxd is already running (unix only)
268276
try:
269277
if subprocess.check_output(["pidof", "pivxd"]) is not None:
@@ -307,7 +315,8 @@ def pingTravis():
307315
sys.stdout.flush()
308316
threading.Timer(pingTime, pingTravis).start()
309317

310-
pingTravis()
318+
if not keep_cache:
319+
pingTravis()
311320
try:
312321
subprocess.check_output([tests_dir + 'create_cache.py'] + flags + ["--tmpdir=%s/cache" % tmpdir])
313322
except subprocess.CalledProcessError as e:

0 commit comments

Comments
 (0)