Skip to content

Commit 9d72dbc

Browse files
author
jantje
committed
Explicitly add jantjes boards to json's
This is only needed for old installs
1 parent da71163 commit 9d72dbc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
import static org.junit.Assert.fail;
44

55
import java.util.ArrayList;
6+
import java.util.Arrays;
67
import java.util.Collection;
8+
import java.util.HashSet;
79
import java.util.LinkedList;
810
import java.util.Map;
911
import java.util.TreeMap;
@@ -52,6 +54,9 @@ public CreateAndCompileJantjesBoardsTest(String name, CodeDescriptor codeDescrip
5254
@SuppressWarnings("rawtypes")
5355
@Parameters(name = "{index}: {0}")
5456
public static Collection examples() {
57+
String[] packageUrlsToAdd = { "https://raw.githubusercontent.com/jantje/hardware/master/package_jantje_index.json"};
58+
BoardsManager.addPackageURLs(new HashSet<>(Arrays.asList(packageUrlsToAdd)), true);
59+
5560
LinkedList<Object[]> examples = new LinkedList<>();
5661
Shared.waitForAllJobsToFinish();
5762
BoardsManager.installLatestPlatform(GenericJantjeBoard.getJsonFileName(), GenericJantjeBoard.getPackageName(), GenericJantjeBoard.getPlatformName());

0 commit comments

Comments
 (0)