mirror of
https://github.com/espressif/esp-idf.git
synced 2025-10-25 03:22:43 +00:00
Examples/Storage: provide sufficient timeout for SD card formatting
Large SD cards (16GB+) require significant amount of time for FS formatting. Added FS mount checkpoint in example test python, timeout set to 60 sec Closes IDFCI-706
This commit is contained in:
@@ -14,6 +14,9 @@ def test_examples_sd_card(env, extra_data):
|
||||
Utility.console_log('peripheral {} detected'.format(peripheral))
|
||||
assert peripheral in ('SDMMC', 'SPI')
|
||||
|
||||
# Provide enough time for possible SD card formatting
|
||||
dut.expect('Filesystem mounted', timeout=60)
|
||||
|
||||
# These lines are matched separately because of ASCII color codes in the output
|
||||
name = dut.expect(re.compile(r'Name: (\w+)'), timeout=5)[0]
|
||||
_type = dut.expect(re.compile(r'Type: (\S+)'), timeout=5)[0]
|
||||
|
||||
Reference in New Issue
Block a user