mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-02 12:14:32 +02:00
fix(protocols): Erased the storage partition for http_server ci test
Added api to erase storage partition for http_server ci test
This commit is contained in:
@@ -31,11 +31,12 @@ def test_examples_protocol_http_server_file_serving(dut: Dut) -> None:
|
|||||||
binary_file = os.path.join(dut.app.binary_path, 'file_server.bin')
|
binary_file = os.path.join(dut.app.binary_path, 'file_server.bin')
|
||||||
bin_size = os.path.getsize(binary_file)
|
bin_size = os.path.getsize(binary_file)
|
||||||
logging.info('file_server_bin_size : {}KB'.format(bin_size // 1024))
|
logging.info('file_server_bin_size : {}KB'.format(bin_size // 1024))
|
||||||
logging.info('Erasing the flash on the chip')
|
logging.info('Erasing the storage partition on the chip')
|
||||||
|
dut.serial.erase_partition('storage')
|
||||||
# Upload binary and start testing
|
# Upload binary and start testing
|
||||||
logging.info('Starting http file serving simple test app')
|
logging.info('Starting http file serving simple test app')
|
||||||
|
|
||||||
dut.expect('Initializing SPIFFS', timeout=30)
|
dut.expect('Initializing SPIFFS', timeout=60)
|
||||||
|
|
||||||
if dut.app.sdkconfig.get('EXAMPLE_WIFI_SSID_PWD_FROM_STDIN') is True:
|
if dut.app.sdkconfig.get('EXAMPLE_WIFI_SSID_PWD_FROM_STDIN') is True:
|
||||||
dut.expect('Please input ssid password:')
|
dut.expect('Please input ssid password:')
|
||||||
|
Reference in New Issue
Block a user