Skip to content

Commit

Permalink
Return exit code based on test result
Browse files Browse the repository at this point in the history
Signed-off-by: Julia Pineda <[email protected]>
  • Loading branch information
jpineda3 committed Sep 29, 2023
1 parent b5dc22f commit ffbf63b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/runHWTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ function runHWTests(board)
if test.Failed
disp(test.Name);
fprintf(fid,string(test.Name)+'\n');
exitcode = 2;
elseif test.Incomplete
exitcode = 3;
end
end
fclose(fid);
Expand All @@ -99,5 +102,5 @@ function runHWTests(board)
end
save(['BSPTest_',datestr(now,'dd_mm_yyyy-HH_MM_SS'),'.mat'],'t');
bdclose('all');
exit(any([results.Failed]));
exit(exitcode);
end

0 comments on commit ffbf63b

Please sign in to comment.