mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
CI: fix sdcard examples timeout
This commit is contained in:
parent
310e5e71ed
commit
5fdb9b00c5
@ -26,18 +26,21 @@ def test_examples_sd_card_sdmmc(dut: Dut) -> None:
|
|||||||
|
|
||||||
logging.info('Card {} {} {}MHz {} found'.format(name, _type, speed, size))
|
logging.info('Card {} {} {}MHz {} found'.format(name, _type, speed, size))
|
||||||
|
|
||||||
message_list = ('Opening file /sdcard/hello.txt',
|
message_list1 = ('Opening file /sdcard/hello.txt',
|
||||||
'File written',
|
'File written',
|
||||||
'Renaming file /sdcard/hello.txt to /sdcard/foo.txt',
|
'Renaming file /sdcard/hello.txt to /sdcard/foo.txt',
|
||||||
'Reading file /sdcard/foo.txt',
|
'Reading file /sdcard/foo.txt',
|
||||||
"Read from file: 'Hello {}!'".format(name),
|
"Read from file: 'Hello {}!'".format(name))
|
||||||
re.compile(str.encode('Formatting card, allocation unit size=\\S+')),
|
sd_card_format = re.compile(str.encode('Formatting card, allocation unit size=\\S+'))
|
||||||
'file doesnt exist, format done',
|
message_list2 = ('file doesnt exist, format done',
|
||||||
'Opening file /sdcard/nihao.txt',
|
'Opening file /sdcard/nihao.txt',
|
||||||
'File written',
|
'File written',
|
||||||
'Reading file /sdcard/nihao.txt',
|
'Reading file /sdcard/nihao.txt',
|
||||||
"Read from file: 'Nihao {}!'".format(name),
|
"Read from file: 'Nihao {}!'".format(name),
|
||||||
'Card unmounted')
|
'Card unmounted')
|
||||||
|
|
||||||
for msg in message_list:
|
for msg in message_list1:
|
||||||
dut.expect(msg, timeout=60)
|
dut.expect_exact(msg, timeout=30)
|
||||||
|
dut.expect(sd_card_format, timeout=180) # Provide enough time for SD card FATFS format operation
|
||||||
|
for msg in message_list2:
|
||||||
|
dut.expect_exact(msg, timeout=30)
|
||||||
|
@ -1,2 +1,3 @@
|
|||||||
CONFIG_EXAMPLE_FORMAT_IF_MOUNT_FAILED=y
|
CONFIG_EXAMPLE_FORMAT_IF_MOUNT_FAILED=y
|
||||||
CONFIG_FATFS_VFS_FSTAT_BLKSIZE=4096
|
CONFIG_FATFS_VFS_FSTAT_BLKSIZE=4096
|
||||||
|
CONFIG_ESP_TASK_WDT_EN=n
|
||||||
|
@ -28,18 +28,21 @@ def test_examples_sd_card_sdspi(dut: Dut) -> None:
|
|||||||
|
|
||||||
logging.info('Card {} {} {}MHz {} found'.format(name, _type, speed, size))
|
logging.info('Card {} {} {}MHz {} found'.format(name, _type, speed, size))
|
||||||
|
|
||||||
message_list = ('Opening file /sdcard/hello.txt',
|
message_list1 = ('Opening file /sdcard/hello.txt',
|
||||||
'File written',
|
'File written',
|
||||||
'Renaming file /sdcard/hello.txt to /sdcard/foo.txt',
|
'Renaming file /sdcard/hello.txt to /sdcard/foo.txt',
|
||||||
'Reading file /sdcard/foo.txt',
|
'Reading file /sdcard/foo.txt',
|
||||||
"Read from file: 'Hello {}!'".format(name),
|
"Read from file: 'Hello {}!'".format(name))
|
||||||
re.compile(str.encode('Formatting card, allocation unit size=\\S+')),
|
sd_card_format = re.compile(str.encode('Formatting card, allocation unit size=\\S+'))
|
||||||
'file doesnt exist, format done',
|
message_list2 = ('file doesnt exist, format done',
|
||||||
'Opening file /sdcard/nihao.txt',
|
'Opening file /sdcard/nihao.txt',
|
||||||
'File written',
|
'File written',
|
||||||
'Reading file /sdcard/nihao.txt',
|
'Reading file /sdcard/nihao.txt',
|
||||||
"Read from file: 'Nihao {}!'".format(name),
|
"Read from file: 'Nihao {}!'".format(name),
|
||||||
'Card unmounted')
|
'Card unmounted')
|
||||||
|
|
||||||
for msg in message_list:
|
for msg in message_list1:
|
||||||
dut.expect(msg, timeout=20)
|
dut.expect_exact(msg, timeout=30)
|
||||||
|
dut.expect(sd_card_format, timeout=180) # Provide enough time for SD card FATFS format operation
|
||||||
|
for msg in message_list2:
|
||||||
|
dut.expect_exact(msg, timeout=30)
|
||||||
|
@ -1 +1,3 @@
|
|||||||
CONFIG_EXAMPLE_FORMAT_IF_MOUNT_FAILED=y
|
CONFIG_EXAMPLE_FORMAT_IF_MOUNT_FAILED=y
|
||||||
|
CONFIG_FATFS_VFS_FSTAT_BLKSIZE=4096
|
||||||
|
CONFIG_ESP_TASK_WDT_EN=n
|
||||||
|
Loading…
x
Reference in New Issue
Block a user