summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhathach <[email protected]>2024-07-18 13:54:11 +0700
committerhathach <[email protected]>2024-07-18 13:54:11 +0700
commiteb698f8cc7ec2ca84051c0ce3bb6e845f8f8407d (patch)
tree97701d4b65e3c5abd09288bfa3fd6cd6b51d248c
parent30a48c57bd2f56d38c846e1f3257b2bde9ab4a9c (diff)
skip hil test if binary not exist
-rw-r--r--test/hil/hil_test.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/hil/hil_test.py b/test/hil/hil_test.py
index 87cf5d0f6..8f0a8c93a 100644
--- a/test/hil/hil_test.py
+++ b/test/hil/hil_test.py
@@ -373,6 +373,10 @@ def main():
fw_name = f'{fw_dir}/{test}'
print(f' {test} ...', end='')
+ if not os.path.exists(fw_dir):
+ print('Skip')
+ continue
+
# flash firmware. It may fail randomly, retry a few times
for i in range(3):
ret = globals()[f'flash_{flasher}'](item, fw_name)