feat(partition_ota): Modified pytest for storage data

- Modified test for storage data, reduced the size to 500 bytes,
less than IMAGE_HEADER_SIZE (1024), to check the workflow, if the
custom partition other than APP and BOOTLOADER less IMAGE_HEADER_SIZE
performed OTA
This commit is contained in:
hrushikesh.bhosale
2026-02-09 12:27:55 +05:30
parent 55d317ff8a
commit be7fad53ce
2 changed files with 5 additions and 0 deletions
@@ -684,6 +684,11 @@ esp_err_t esp_https_ota_perform(esp_https_ota_handle_t https_ota_handle)
esp_ota_set_final_partition(handle->update_handle, handle->partition.final, handle->partition.finalize_with_copy);
handle->state = ESP_HTTPS_OTA_IN_PROGRESS;
/**
* If the final partition is not an app or bootloader, return ESP_ERR_HTTPS_OTA_IN_PROGRESS
* As there is no need to read header and verify chip id and chip revision for custom partition.
* Directly jump to the OTA in progress state.
*/
if (handle->partition.final->type != ESP_PARTITION_TYPE_APP
&& handle->partition.final->type != ESP_PARTITION_TYPE_BOOTLOADER) {
return ESP_ERR_HTTPS_OTA_IN_PROGRESS;
Binary file not shown.