fix(https_request): use write_flash esptool subcommand for compatibility

The esptool version bundled with the release/v5.5 IDF environment only
accepts the underscore subcommand name 'write_flash'. The hyphenated
alias 'write-flash' was added in later esptool releases, so the CI
target test failed with 'argparse.ArgumentError: invalid choice:
write-flash'. Use the canonical 'write_flash' name, which is accepted
by all esptool versions.
This commit is contained in:
Hrushikesh Bhosale
2026-05-27 11:51:29 +05:30
parent efa7ad42be
commit aff90e29f8

View File

@@ -96,7 +96,7 @@ def write_time_to_nvs(dut: Dut) -> None:
with dut.serial.disable_redirect_thread():
dut.serial.esp.connect()
esptool.main(
['write-flash', '--no-compress', hex(nvs_offset), bin_file],
['write_flash', '--no-compress', hex(nvs_offset), bin_file],
esp=dut.serial.esp,
)
settings = dut.serial.proc.get_settings()