Skip to content

Commit ec95b71

Browse files
author
jan
committed
Trying to fix inconsistent uploadPattern fail 1
Seems Sloeber takes the arduino provided esp board when the test fails. As the ESP32 is loaded at the beginning of the test run I realy do not understand why.
1 parent e7ac01d commit ec95b71

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

io.sloeber.core/src/io/sloeber/arduinoFramework/api/BoardsManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public class BoardsManager {
7777
}
7878

7979
public static boolean isReady() {
80-
return !(myIsDirty || myIsUpdating);
80+
return !(myIsDirty || myIsUpdating || envVarsNeedUpdating);
8181
}
8282

8383
/**

io.sloeber.tests/src/io/sloeber/core/BuildTests.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,8 @@ public static void installAdditionalBoards() throws Exception {
109109
Teensy.installLatest();
110110
Arduino.installLatestSamDBoards();
111111
LibraryManager.installLibrary("RTCZero");
112+
BoardsManager.update(false);
113+
Shared.waitForBoardsManager();
112114

113115
}
114116

@@ -605,7 +607,7 @@ public void uploadPattern() throws Exception {
605607
boardDescriptor = ESP32.esp32().getBoardDescriptor();
606608
boardDescriptor.setUploadPort("host 10.10.10.10");
607609
recipeKey = boardDescriptor.getUploadPatternKey();
608-
assertEquals( "tools.esptool_py.upload.network_pattern", recipeKey,"ESP OTA upload recipe key is wrong");
610+
assertEquals( "tools.esptool_py.upload.network_pattern", recipeKey,"ESP OTA upload recipe key is wrong "+boardDescriptor.jsonURL());
609611

610612
}
611613

0 commit comments

Comments
 (0)