Skip to content

Commit

Permalink
Add check for missing display in GitHub CI
Browse files Browse the repository at this point in the history
  • Loading branch information
eszmw committed Aug 25, 2023
1 parent c319524 commit 51d61ea
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions SoftwareTests/smokeTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ function runBuildFridge(testCase)
catch ME
if contains(string(ME.message),"['step6_ClosedLoopHarness/Solver Configuration']: At time 0.8")
testCase.log("Expected error thrown on step6_ClosedLoopHarness")
elseif ME.identifier == "cefclient:webwindow:MissingDisplay"
disp("Expected error related to lack of display in testing machine.")
else
warning("Unexpected error")
rethrow(ME)
Expand All @@ -113,6 +115,8 @@ function runBuildFridge(testCase)
catch ME
if contains(string(ME.message),"['step6_ClosedLoopHarness/Solver Configuration']: At time 0.8")
testCase.log("Expected error thrown on step6_ClosedLoopHarness")
elseif ME.identifier == "cefclient:webwindow:MissingDisplay"
disp("Expected error related to lack of display in testing machine.")
else
warning("Unexpected error in BuilRefrigerator test")
rethrow(ME)
Expand Down

0 comments on commit 51d61ea

Please sign in to comment.