summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorhathach <[email protected]>2024-09-18 17:59:04 +0700
committerhathach <[email protected]>2024-09-30 11:53:17 +0700
commit47233f863a5fa5255461514fada9af7771cf2146 (patch)
tree6fb62f46865db1417b7960fcdc629464c3e760fd /test
parente209acb8d3624d3e6e6b6cee827bf4a97a4b138c (diff)
update to dwc2 register struct
Diffstat (limited to 'test')
-rw-r--r--test/hil/hil_test.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/hil/hil_test.py b/test/hil/hil_test.py
index 2d14220c5..fc2e6c777 100644
--- a/test/hil/hil_test.py
+++ b/test/hil/hil_test.py
@@ -459,6 +459,8 @@ def main():
"""
global verbose
+ duration = time.time()
+
parser = argparse.ArgumentParser()
parser.add_argument('config_file', help='Configuration JSON file')
parser.add_argument('-b', '--board', action='append', default=[], help='Boards to test, all if not specified')
@@ -483,9 +485,10 @@ def main():
with Pool(processes=os.cpu_count()) as pool:
err_count = sum(pool.map(test_board, config_boards))
+ duration = time.time() - duration
print()
print("-" * 30)
- print(f'Total failed: {err_count}')
+ print(f'Total failed: {err_count} in {duration:.1f}s')
print("-" * 30)
sys.exit(err_count)