Skip to content

Commit 88e895d

Browse files
author
jantje
committed
Make sure the arduino ide tool selection is used
1 parent e53ded4 commit 88e895d

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
import io.sloeber.core.api.CompileOptions;
2828
import io.sloeber.core.api.ConfigurationDescriptor;
2929
import io.sloeber.core.api.LibraryManager;
30+
import io.sloeber.core.api.Preferences;
3031
import io.sloeber.core.boards.AdafruitnCirquitPlaygroundBoard;
3132
import io.sloeber.core.boards.AdafruitnRF52idBoard;
3233
import io.sloeber.core.boards.EsploraBoard;
@@ -54,7 +55,7 @@ public CreateAndCompileLibraryExamples(String name, BoardDescriptor boardid, Cod
5455
@Parameters(name = "{index}: {0}")
5556
public static Collection examples() {
5657
WaitForInstallerToFinish();
57-
58+
Preferences.setUseArduinoToolSelection(true);
5859
IBoard myBoards[] = { new leonardoBoard(), new UnoBoard(), new EsploraBoard(), new AdafruitnRF52idBoard(),
5960
new AdafruitnCirquitPlaygroundBoard(), new NodeMCUBoard() };
6061

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ public CreateAndCompileTest(BoardDescriptor board) {
3131
@SuppressWarnings("rawtypes")
3232
@Parameters(name = "{index}: {0} ")
3333
public static Collection boards() {
34+
//build the Arduino way
35+
Preferences.setUseArduinoToolSelection(true);
3436
installAdditionalBoards();
3537
List<BoardDescriptor> boards = new ArrayList<>();
3638
for (String curBoardFile : BoardsManager.getAllBoardsFiles()) {
@@ -136,8 +138,7 @@ public static void installAdditionalBoards() {
136138
BoardsManager.installAllLatestPlatforms();
137139
BoardsManager.onlyKeepLatestPlatforms();
138140
}
139-
//build the Arduino way
140-
Preferences.setUseArduinoToolSelection(false);
141+
141142
Shared.waitForAllJobsToFinish();
142143
}
143144

0 commit comments

Comments
 (0)