mirror of
https://github.com/espressif/esp-idf
synced 2025-03-10 09:39:10 -04:00
Merge branch 'bug/ci_test_https_server_file_serving_v5.1' into 'release/v5.1'
fix(protocols): Erased the storage partition for http_server ci test (v5.1) See merge request espressif/esp-idf!34166
This commit is contained in:
commit
f55d1d196f
@ -2,7 +2,6 @@
|
|||||||
#
|
#
|
||||||
# SPDX-FileCopyrightText: 2021-2022 Espressif Systems (Shanghai) CO LTD
|
# SPDX-FileCopyrightText: 2021-2022 Espressif Systems (Shanghai) CO LTD
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import hashlib
|
import hashlib
|
||||||
import http.client
|
import http.client
|
||||||
import logging
|
import logging
|
||||||
@ -30,11 +29,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)
|
||||||
# Parse IP address of STA
|
# Parse IP address of STA
|
||||||
logging.info('Waiting to connect with AP')
|
logging.info('Waiting to connect with AP')
|
||||||
got_ip = dut.expect(r'IPv4 address: (\d+\.\d+\.\d+\.\d+)[^\d]', timeout=30)[1].decode()
|
got_ip = dut.expect(r'IPv4 address: (\d+\.\d+\.\d+\.\d+)[^\d]', timeout=30)[1].decode()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user