Skip to content

Commit 9ea870a

Browse files
committed
fix test failing
1 parent 4117277 commit 9ea870a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tools/download_test.go

+4-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ 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"}},
119+
{"esptool_py", "4.5.1", []string{"esptool"}},
120120
{"arduino-fwuploader", "2.2.2", []string{"arduino-fwuploader", "LICENSE.txt"}},
121121
{"fwupdater", "0.1.12", []string{"firmwares", "FirmwareUploader", "LICENSE.txt"}}, // old legacy tool
122122
}
@@ -141,6 +141,9 @@ func TestDownload(t *testing.T) {
141141

142142
// Check that the files have been created
143143
for _, file := range tc.filesCreated {
144+
if OS == "windows" {
145+
file = file + ".exe"
146+
}
144147
filePath := toolDir.Join(file)
145148
if filePath.IsDir() {
146149
require.DirExists(t, filePath.String())

0 commit comments

Comments
 (0)