Skip to content

Commit 58ccca7

Browse files
committed
wip
1 parent 3d4af39 commit 58ccca7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/run-tests.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -932,7 +932,10 @@ def run_one_test(test_file):
932932
return
933933

934934
# Run the test on the MicroPython target.
935+
import time
936+
tt0 = time.time()
935937
output_mupy = run_micropython(pyb, args, test_file, test_file_abspath)
938+
ttd = (time.time() - tt0) * 1000
936939

937940
# Check if the target requested to skip this test.
938941
if output_mupy == b"SKIP\n":
@@ -1005,7 +1008,7 @@ def run_one_test(test_file):
10051008

10061009
# Work out if test passed or not.
10071010
test_passed = False
1008-
extra_info = ""
1011+
extra_info = "(took {:.3} ms)" .format(ttd)
10091012
if uses_unittest:
10101013
test_passed = unittest_result_match.group(2) == b"OK"
10111014
num_test_cases = int(unittest_ran_match.group(1))

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy