File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
test/functional/test_framework Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -295,8 +295,11 @@ def run(self):
295
295
# Wait until verack is received
296
296
self .wait_for_verack ()
297
297
298
- test_number = 1
299
- for test_instance in self .test_generator .get_tests ():
298
+ test_number = 0
299
+ tests = self .test_generator .get_tests ()
300
+ for test_instance in tests :
301
+ test_number += 1
302
+ logger .info ("Running test %d: %s line %s" % (test_number , tests .gi_code .co_filename , tests .gi_frame .f_lineno ))
300
303
# We use these variables to keep track of the last block
301
304
# and last transaction in the tests, which are used
302
305
# if we're not syncing on every block or every tx.
@@ -397,9 +400,6 @@ def run(self):
397
400
if (not self .check_mempool (tx .sha256 , tx_outcome )):
398
401
raise AssertionError ("Mempool test failed at test %d" % test_number )
399
402
400
- logger .info ("Test %d: PASS" % test_number )
401
- test_number += 1
402
-
403
403
[ c .disconnect_node () for c in self .connections ]
404
404
self .wait_for_disconnections ()
405
405
self .block_store .close ()
You can’t perform that action at this time.
0 commit comments