From 3e6d34da455b806d1aa60523de8a60a627c34280 Mon Sep 17 00:00:00 2001 From: Craftzman7 Date: Sun, 19 May 2024 13:02:01 -0700 Subject: [PATCH] Make sure to exit on test mode and smoke test when on unsupported platform --- photon-server/src/main/java/org/photonvision/Main.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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);