Skip to content

Commit

Permalink
#1418 make sure test issue555 is not run on the build server
Browse files Browse the repository at this point in the history
  • Loading branch information
jantje committed Dec 8, 2021
1 parent b874b0e commit fde6ba1
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion io.sloeber.tests/src/io/sloeber/core/MySystem.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import static org.junit.Assert.*;

import io.sloeber.core.common.Common;
import io.sloeber.providers.Arduino;
import io.sloeber.providers.ESP8266;
import io.sloeber.providers.MCUBoard;
Expand All @@ -16,7 +17,16 @@ public class MySystem {
private static final String jantjesWindowsMachine = "1248215851";
//the one below is based on one mac address Fysiek adres (MAC): C0-3F-D5-66-04-58
private static final String jantjesLinuxMachine = "88937904";
private static final String currentMachine = jantjesWindowsMachine;
private static final String currentMachine = getMachine();

private static String getMachine() {
if (Common.isWindows) {
if ("jan".equals(System.getProperty("user.name"))) {
return jantjesWindowsMachine;
}
}
return new String();
}

public static String getTeensyPlatform() {
switch (currentMachine) {
Expand Down

0 comments on commit fde6ba1

Please sign in to comment.