diff --git a/.github/workflows/hil.yml b/.github/workflows/hil.yml index df340c77..ba2485c6 100644 --- a/.github/workflows/hil.yml +++ b/.github/workflows/hil.yml @@ -164,7 +164,7 @@ jobs: fi result=$(espflash_app/espflash read-flash 0 0x200 flash_content.bin 2>&1) echo "$result" - if [[ ! $result =~ "Flash content suscesfully read and written to" ]]; then + if [[ ! $result =~ "Flash content successfully read and written to" ]]; then exit 1 fi echo "Checking if flash is empty" @@ -180,13 +180,13 @@ jobs: run: | result=$(espflash_app/espflash save-image --merge --chip ${{ matrix.board }} ${{ env.ESPFLASH_APP }} app.bin 2>&1) echo "$result" - if [[ ! $result =~ "Image suscesfully saved!" ]]; then + if [[ ! $result =~ "Image successfully saved!" ]]; then exit 1 fi echo "Writting binary" result=$(espflash_app/espflash write-bin 0x0 app.bin 2>&1) echo "$result" - if [[ ! $result =~ "Binary suscesfully written to flash!" ]]; then + if [[ ! $result =~ "Binary successfully written to flash!" ]]; then exit 1 fi echo "Monitoring..." diff --git a/espflash/Cargo.toml b/espflash/Cargo.toml index f4d01525..34c0e9d4 100644 --- a/espflash/Cargo.toml +++ b/espflash/Cargo.toml @@ -83,7 +83,3 @@ cli = [ "dep:update-informer", ] serialport = ["dep:serialport"] - -# [dev-dependencies] -# assert_cmd = "2.0.12" -# predicates = "3.0.4" diff --git a/espflash/src/bin/espflash.rs b/espflash/src/bin/espflash.rs index 31c1297b..0bc6f87e 100644 --- a/espflash/src/bin/espflash.rs +++ b/espflash/src/bin/espflash.rs @@ -200,6 +200,8 @@ pub fn erase_parts(args: ErasePartsArgs, config: &Config) -> Result<()> { .connection() .reset_after(!args.connect_args.no_stub)?; + info!("Specified partitions successfully erased!"); + Ok(()) } diff --git a/espflash/src/cli/mod.rs b/espflash/src/cli/mod.rs index 360145a5..34cf2f08 100644 --- a/espflash/src/cli/mod.rs +++ b/espflash/src/cli/mod.rs @@ -513,7 +513,7 @@ pub fn save_elf_as_image( } } - info!("Image suscesfully saved!"); + info!("Image successfully saved!"); Ok(()) } diff --git a/espflash/src/flasher/mod.rs b/espflash/src/flasher/mod.rs index 0aec8846..07fbda99 100644 --- a/espflash/src/flasher/mod.rs +++ b/espflash/src/flasher/mod.rs @@ -976,7 +976,7 @@ impl Flasher { }; self.write_bins_to_flash(&[segment], progress)?; - info!("Binary suscesfully written to flash!"); + info!("Binary successfully written to flash!"); Ok(()) } @@ -1153,7 +1153,7 @@ impl Flasher { file.write_all(&data)?; info!( - "Flash content suscesfully read and written to '{}'!", + "Flash content successfully read and written to '{}'!", file_path.display() );