mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-01 10:40:47 +03:00
refactor(nvs_flash): NVS Host tests cleaned-up and test cases commented
- Host test were refactored to allow for BDL and non-BDL NVS implementation - Introduceed `NVSPartitionTestHelper` class replacing `PartitionEmulationFixture` - Refactored all tests to use `NVSPartitionTestHelper` instead of legacy emulation fixture - Removed legacy `PartitionEmulationFixture` and `PartitionEmulationFixture2` classes - Removed `TEMPORARILY_DISABLED` macro usage by reducing partition size in applicable tests - Enhanced test coverage and readability with comments and validation steps for each TC - Added utility functions for partition stats tracking, file loading, and erase count check
This commit is contained in:
@@ -174,8 +174,8 @@ bool NVSPartition::is_bdl_nvs_compliant(const char* label, const esp_blockdev_ha
|
||||
is_compliant = false;
|
||||
}
|
||||
|
||||
if(bdl->geometry.erase_size % NVS_CONST_PAGE_SIZE != 0) {
|
||||
ESP_LOGV(TAG, "Block device erase size is not a multiple of %d, it is %zu", NVS_CONST_PAGE_SIZE, bdl->geometry.erase_size);
|
||||
if(NVS_CONST_PAGE_SIZE % bdl->geometry.erase_size != 0) {
|
||||
ESP_LOGV(TAG, "Block device erase size %zu does not allow erasing pages of size %d.", bdl->geometry.erase_size, NVS_CONST_PAGE_SIZE);
|
||||
is_compliant = false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user