Skip to content

Commit fde6ba1

Browse files
author
jantje
committedDec 8, 2021
#1418 make sure test issue555 is not run on the build server
·
V4_4_3_0V4_4_1_0
1 parent b874b0e commit fde6ba1

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed
 

‎io.sloeber.tests/src/io/sloeber/core/MySystem.java

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import static org.junit.Assert.*;
44

5+
import io.sloeber.core.common.Common;
56
import io.sloeber.providers.Arduino;
67
import io.sloeber.providers.ESP8266;
78
import io.sloeber.providers.MCUBoard;
@@ -16,7 +17,16 @@ public class MySystem {
1617
private static final String jantjesWindowsMachine = "1248215851";
1718
//the one below is based on one mac address Fysiek adres (MAC): C0-3F-D5-66-04-58
1819
private static final String jantjesLinuxMachine = "88937904";
19-
private static final String currentMachine = jantjesWindowsMachine;
20+
private static final String currentMachine = getMachine();
21+
22+
private static String getMachine() {
23+
if (Common.isWindows) {
24+
if ("jan".equals(System.getProperty("user.name"))) {
25+
return jantjesWindowsMachine;
26+
}
27+
}
28+
return new String();
29+
}
2030

2131
public static String getTeensyPlatform() {
2232
switch (currentMachine) {

0 commit comments

Comments
 (0)
Please sign in to comment.