metro m7 has issue with cdc_msc example randomly on hil test. Exclude it for now

This commit is contained in:
hathach
2024-08-13 14:35:42 +07:00
parent 5254065976
commit 5f8599f6d4
2 changed files with 8 additions and 5 deletions

View File

@@ -88,15 +88,16 @@ def read_disk_file(uid, lun, fname):
timeout = ENUM_TIMEOUT timeout = ENUM_TIMEOUT
while timeout: while timeout:
if os.path.exists(dev): if os.path.exists(dev):
fat = fs.open_fs(f'fat://{dev}') fat = fs.open_fs(f'fat://{dev}?read_only=true')
try: try:
assert fat.exists(fname), f'File {fname} not found in {dev}'
with fat.open(fname, 'rb') as f: with fat.open(fname, 'rb') as f:
return f.read() data = f.read()
finally: finally:
fat.close() fat.close()
assert data, f'Cannot read file {fname} from {dev}'
return data
time.sleep(1) time.sleep(1)
timeout = timeout - 1 timeout -= 1
assert timeout, f'Storage {dev} not existed' assert timeout, f'Storage {dev} not existed'
return None return None
@@ -322,7 +323,7 @@ def test_hid_boot_interface(board):
time.sleep(1) time.sleep(1)
timeout = timeout - 1 timeout = timeout - 1
assert timeout, 'Device not available' assert timeout, 'HID device not available'
def test_hid_composite_freertos(id): def test_hid_composite_freertos(id):

View File

@@ -17,6 +17,8 @@
{ {
"name": "metro_m7_1011", "name": "metro_m7_1011",
"uid": "9CE8715DD71137363E00005002004200", "uid": "9CE8715DD71137363E00005002004200",
"tests_skip": ["cdc_msc", "cdc_msc_freertos"],
"comment": "Somehow has issue with cdc_msc example randomly",
"flasher": "jlink", "flasher": "jlink",
"flasher_sn": "000611000000", "flasher_sn": "000611000000",
"flasher_args": "-device MIMXRT1011xxx5A" "flasher_args": "-device MIMXRT1011xxx5A"