Skip to content

Commit

Permalink
fix test failing
Browse files Browse the repository at this point in the history
  • Loading branch information
umbynos committed Dec 18, 2023
1 parent 4117277 commit 9ea870a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tools/download_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand All @@ -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())
Expand Down

0 comments on commit 9ea870a

Please sign in to comment.