mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-13 21:55:07 +00:00
feat(nvs): Optimize read-only NVS loading
This commit is contained in:
@@ -36,16 +36,12 @@ def test_examples_parttool(dut: Dut) -> None:
|
||||
cmds = [
|
||||
'read_partition --partition-type=data --partition-subtype=nvs --output custom1.bin',
|
||||
'erase_partition --partition-name=custom',
|
||||
'write_partition --partition-name=custom --input custom.bin',
|
||||
'write_partition --partition-name=custom --input custom.bin --ignore-readonly',
|
||||
'get_partition_info --partition-boot-default --info size',
|
||||
]
|
||||
|
||||
for cmd in cmds:
|
||||
try:
|
||||
subprocess.check_call(BASE_CMD + cmd.split())
|
||||
except subprocess.CalledProcessError as e:
|
||||
print(e.output)
|
||||
raise
|
||||
subprocess.check_call(BASE_CMD + cmd.split())
|
||||
|
||||
clean_files = ['custom.bin', 'custom1.bin']
|
||||
for clean_file in clean_files:
|
||||
|
Reference in New Issue
Block a user