@@ -116,9 +116,9 @@ func TestDownload(t *testing.T) {
116116 {"openocd" , "0.11.0-arduino2" , []string {"bin" , "share" }},
117117 {"dfu-util" , "0.10.0-arduino1" , []string {"dfu-prefix" , "dfu-suffix" , "dfu-util" }},
118118 {"rp2040tools" , "1.0.6" , []string {"elf2uf2" , "picotool" , "pioasm" , "rp2040load" }},
119- {"esptool_py" , "4.5.1" , []string {"esptool" , "esptool.py" }},
120- {"arduino-fwuploader" , "2.2.2" , []string {"arduino-fwuploader" , "LICENSE.txt" }},
121- {"fwupdater" , "0.1.12" , []string {"firmwares" , "FirmwareUploader" , "LICENSE.txt" }}, // old legacy tool
119+ {"esptool_py" , "4.5.1" , []string {"esptool" }},
120+ {"arduino-fwuploader" , "2.2.2" , []string {"arduino-fwuploader" }},
121+ {"fwupdater" , "0.1.12" , []string {"firmwares" , "FirmwareUploader" }}, // old legacy tool
122122 }
123123 // prepare the test environment
124124 tempDir := t .TempDir ()
@@ -145,7 +145,11 @@ func TestDownload(t *testing.T) {
145145 if filePath .IsDir () {
146146 require .DirExists (t , filePath .String ())
147147 } else {
148- require .FileExists (t , filePath .String ())
148+ if OS == "windows" {
149+ require .FileExists (t , filePath .String ()+ ".exe" )
150+ } else {
151+ require .FileExists (t , filePath .String ())
152+ }
149153 }
150154 }
151155
0 commit comments