Skip to content

Commit

Permalink
Make sure to exit on test mode and smoke test when on unsupported pla…
Browse files Browse the repository at this point in the history
…tform
  • Loading branch information
Craftzman7 committed May 19, 2024
1 parent f661821 commit 3e6d34d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions photon-server/src/main/java/org/photonvision/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down Expand Up @@ -405,7 +405,6 @@ public static void main(String[] args) {
+ e.getMessage());
}


CVMat.enablePrint(false);
PipelineProfiler.enablePrint(false);

Expand Down

0 comments on commit 3e6d34d

Please sign in to comment.