diff --git a/tools/download_test.go b/tools/download_test.go index 8721ff4b3..03dde7883 100644 --- a/tools/download_test.go +++ b/tools/download_test.go @@ -116,7 +116,7 @@ func TestDownload(t *testing.T) { {"openocd", "0.11.0-arduino2", []string{"bin", "share"}}, {"dfu-util", "0.10.0-arduino1", []string{"dfu-prefix", "dfu-suffix", "dfu-util"}}, {"rp2040tools", "1.0.6", []string{"elf2uf2", "picotool", "pioasm", "rp2040load"}}, - {"esptool_py", "4.5.1", []string{"esptool", "esptool.py"}}, + {"esptool_py", "4.5.1", []string{"esptool"}}, {"arduino-fwuploader", "2.2.2", []string{"arduino-fwuploader", "LICENSE.txt"}}, {"fwupdater", "0.1.12", []string{"firmwares", "FirmwareUploader", "LICENSE.txt"}}, // old legacy tool } @@ -141,6 +141,9 @@ func TestDownload(t *testing.T) { // Check that the files have been created for _, file := range tc.filesCreated { + if OS == "windows" { + file = file + ".exe" + } filePath := toolDir.Join(file) if filePath.IsDir() { require.DirExists(t, filePath.String())