mtdconfig: change TESTING_MTD_CONFIG_FAIL_SAFE name

change nvs module testcase name TESTING_MTD_CONFIG_FAIL_SAFE
to CONFIG_TESTING_MTD_CONFIG_NVS

Signed-off-by: zhaoxingyu1 <zhaoxingyu1@xiaomi.com>
This commit is contained in:
zhaoxingyu1
2026-01-24 23:35:09 +08:00
committed by Donny(董九柱)
parent e62ba0adc5
commit 58ae8e9605
5 changed files with 6 additions and 7 deletions
@@ -421,7 +421,7 @@ static int init_storage_partition(void)
#elif defined (CONFIG_ESP32C3_SPIFLASH_MTD_CONFIG)
#if defined (CONFIG_TESTING_MTD_CONFIG_FAIL_SAFE)
#if defined (CONFIG_TESTING_MTD_CONFIG_NVS)
/* To test power-loss resilient kv system,
* we write possible power-loss flash layout into flash
@@ -45,5 +45,4 @@ CONFIG_START_MONTH=11
CONFIG_START_YEAR=2019
CONFIG_SYSTEM_CFGDATA=y
CONFIG_SYSTEM_NSH=y
CONFIG_TESTING_MTD_CONFIG_FAIL_SAFE=y
CONFIG_UART0_SERIAL_CONSOLE=y
@@ -412,7 +412,7 @@ static int init_storage_partition(void)
#elif defined (CONFIG_ESPRESSIF_SPIFLASH_MTD_CONFIG)
# if defined (CONFIG_TESTING_MTD_CONFIG_FAIL_SAFE)
# if defined (CONFIG_TESTING_MTD_CONFIG_NVS)
/* To test power-loss resilient kv system,
* we write possible power-loss flash layout into flash
@@ -421,7 +421,7 @@ static int init_storage_partition(void)
* write into flash.
*/
const char *path = CONFIG_TESTING_MTD_CONFIG_FAIL_SAFE_MOUNTPT_NAME;
const char *path = CONFIG_TESTING_MTD_CONFIG_MOUNTPT_NAME;
ret = register_mtddriver(path, mtd, 0777, NULL);
if (ret < 0)
{
@@ -408,7 +408,7 @@ static int init_storage_partition(void)
#elif defined (CONFIG_ESPRESSIF_SPIFLASH_MTD_CONFIG)
# if defined (CONFIG_TESTING_MTD_CONFIG_FAIL_SAFE)
# if defined (CONFIG_TESTING_MTD_CONFIG_NVS)
/* To test power-loss resilient kv system,
* we write possible power-loss flash layout into flash
@@ -407,7 +407,7 @@ static int init_storage_partition(void)
#elif defined (CONFIG_ESPRESSIF_SPIFLASH_MTD_CONFIG)
# if defined (CONFIG_TESTING_MTD_CONFIG_FAIL_SAFE)
# if defined (CONFIG_TESTING_MTD_CONFIG_NVS)
/* To test power-loss resilient kv system,
* we write possible power-loss flash layout into flash
@@ -416,7 +416,7 @@ static int init_storage_partition(void)
* write into flash.
*/
const char *path = CONFIG_TESTING_MTD_CONFIG_FAIL_SAFE_MOUNTPT_NAME;
const char *path = CONFIG_TESTING_MTD_CONFIG_MOUNTPT_NAME;
ret = register_mtddriver(path, mtd, 0777, NULL);
if (ret < 0)
{