Skip to content

Commit 328661e

Browse files
committed
Maintenance cycle R2024b
1 parent 9376a65 commit 328661e

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

SoftwareTests/PostSmokeTest.m

+10-7
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ function PostSmokeTest(ShowReport)
3131

3232
% Format the results in a table and save them
3333
Results = table(Results');
34-
Results = Results(Results.Passed,:);
3534
Version = extractBetween(string(Results.Name),"Version=",")");
35+
Passed = Results.Passed;
3636

3737
% Add link to other report
3838
File = fileread(fullfile("public","index.html"));
@@ -45,13 +45,16 @@ function PostSmokeTest(ShowReport)
4545
% Format the JSON file
4646
Badge = struct;
4747
Badge.schemaVersion = 1;
48-
Badge.label = "Tested with";
49-
if size(Results,1) >= 1
50-
Badge.color = "success"
48+
Badge.label = "Test Status";
49+
if all(Passed)
50+
Badge.color = "success";
51+
Badge.message = join("R"+Version," | ");
52+
elseif any(Passed)
53+
Badge.color = "yellowgreen";
54+
Badge.message = join("R")
55+
elseif all(~Passed)
56+
Badge.color = "critical";
5157
Badge.message = join("R"+Version," | ");
52-
else
53-
Badge.color = "failure";
54-
Badge.message = "Pipeline fails";
5558
end
5659
Badge = jsonencode(Badge);
5760
writelines(Badge,fullfile("Images","TestedWith.json"));

0 commit comments

Comments
 (0)