skip hil test if binary not exist

This commit is contained in:
hathach 2024-07-18 13:54:11 +07:00
parent 30a48c57bd
commit eb698f8cc7
No known key found for this signature in database
GPG Key ID: 26FAB84F615C3C52

View File

@ -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)