summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorhathach <[email protected]>2026-04-02 23:56:47 +0700
committerhathach <[email protected]>2026-04-03 10:45:16 +0700
commit9368e5d40f3d8e5ac323d288f969782a962d593e (patch)
treeee398f81d49d3e3c0637650a8aa1f3c8993d4a5e /test
parent134e14849b1864ce3454950a50d2c79d93a96cd8 (diff)
fix issue with exmaple
Diffstat (limited to 'test')
-rwxr-xr-xtest/hil/hil_test.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/test/hil/hil_test.py b/test/hil/hil_test.py
index 40779d1a4..f23e2fc22 100755
--- a/test/hil/hil_test.py
+++ b/test/hil/hil_test.py
@@ -1189,9 +1189,8 @@ def test_example(board, f1, example):
print(f'Flashing {fw_name}.elf')
# flash firmware. It may fail randomly, retry a few times
- max_rety = max_retry
start_s = time.time()
- for i in range(max_rety):
+ for i in range(max_retry):
ret = globals()[f'flash_{board["flasher"]["name"].lower()}'](board, fw_name)
if ret.returncode == 0:
try:
@@ -1202,14 +1201,14 @@ def test_example(board, f1, example):
print(' OK', end='')
break
except Exception as e:
- if i == max_rety - 1:
+ if i == max_retry - 1:
err_count += 1
print(f'{STATUS_FAILED}: {e}')
else:
- print(f'\n Test failed: {e}, retry {i+2}/{max_rety}', end='')
+ print(f'\n Test failed: {e}, retry {i+2}/{max_retry}', end='')
time.sleep(0.5)
else:
- print(f'\n Flash failed, retry {i+2}/{max_rety}', end='')
+ print(f'\n Flash failed, retry {i+2}/{max_retry}', end='')
time.sleep(0.5)
if ret.returncode != 0: