From fde6ba1d1426327e7888f5daab43ea022e971c62 Mon Sep 17 00:00:00 2001 From: jantje Date: Wed, 8 Dec 2021 14:32:50 +0100 Subject: [PATCH] #1418 make sure test issue555 is not run on the build server --- io.sloeber.tests/src/io/sloeber/core/MySystem.java | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/io.sloeber.tests/src/io/sloeber/core/MySystem.java b/io.sloeber.tests/src/io/sloeber/core/MySystem.java index 839a797c8..bccaf6d32 100644 --- a/io.sloeber.tests/src/io/sloeber/core/MySystem.java +++ b/io.sloeber.tests/src/io/sloeber/core/MySystem.java @@ -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; @@ -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) {