diff --git a/photon-server/src/main/java/org/photonvision/Main.java b/photon-server/src/main/java/org/photonvision/Main.java index ec6d8779da..a0a8e2767b 100644 --- a/photon-server/src/main/java/org/photonvision/Main.java +++ b/photon-server/src/main/java/org/photonvision/Main.java @@ -362,8 +362,8 @@ public static void main(String[] args) { logger.error("Failed to parse command-line options!", e); } - // We don't want to trigger an exit in test mode. This is specifically for MacOS. - if (!Platform.isSupported() && !isSmoketest) { + // We don't want to trigger an exit in test mode or smoke test. This is specifically for MacOS. + if (!Platform.isSupported() && (!isSmoketest || !isTestMode)) { logger.error("This platform is unsupported!"); System.exit(1); } @@ -405,7 +405,6 @@ public static void main(String[] args) { + e.getMessage()); } - CVMat.enablePrint(false); PipelineProfiler.enablePrint(false);