diff options
| author | Ha Thach <[email protected]> | 2024-07-18 14:10:21 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-07-18 14:10:21 +0700 |
| commit | a615b0a0037fccf597d50685efb13082422c4885 (patch) | |
| tree | 97701d4b65e3c5abd09288bfa3fd6cd6b51d248c /test | |
| parent | b8581b4ab758e29af2a4b36cbd3f9f3171d856e4 (diff) | |
| parent | eb698f8cc7ec2ca84051c0ce3bb6e845f8f8407d (diff) | |
Merge pull request #2722 from hathach/fix-hil-boardtest
Diffstat (limited to 'test')
| -rw-r--r-- | test/hil/hil_test.py | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/test/hil/hil_test.py b/test/hil/hil_test.py index f571e6e02..8f0a8c93a 100644 --- a/test/hil/hil_test.py +++ b/test/hil/hil_test.py @@ -335,9 +335,13 @@ def main(): with open(config_file) as f: config = json.load(f) - # all possible tests + # all possible tests: board_test is added last to disable board's usb all_tests = [ - 'cdc_dual_ports', 'cdc_msc', 'dfu', 'dfu_runtime', 'hid_boot_interface', + 'cdc_dual_ports', + 'cdc_msc', 'cdc_msc_freertos', + 'dfu', 'dfu_runtime', + 'hid_boot_interface', + 'board_test' ] if len(boards) == 0: @@ -352,13 +356,10 @@ def main(): # default to all tests if 'tests' in item: - test_list = item['tests'] + test_list = item['tests'] + ['board_test'] else: test_list = all_tests - # board_test is added last to disable board's usb - test_list.append('board_test') - # remove skip_tests if 'tests_skip' in item: for skip in item['tests_skip']: @@ -372,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) |
