Skip to content

Commit

Permalink
Fix test set status with superseded tests
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickbkr committed May 7, 2023
1 parent aeef338 commit c1c74bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/Routes/home.rakumod
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ sub home-routes() is export {
status => .status,
status-indicator-class =>
(.status != DB::DONE ?? "in-progress" !!
([&&] .platform-test-sets.Seq.map({ $_.tests.Seq.map({.status == DB::SUCCESS}) }).flat) ?? "success" !! "failure"),
([&&] .platform-test-sets.Seq.map({ $_.tests.Seq.map({.superseded || .status == DB::SUCCESS}) }).flat) ?? "success" !! "failure"),
test-set-url => "/testset/" ~ .id,
);
}
Expand Down
2 changes: 1 addition & 1 deletion lib/Routes/testset.rakumod
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ sub testset-routes($sac) is export {
status => .status,
status-indicator-class =>
(.status != DB::DONE ?? "in-progress" !!
([&&] .platform-test-sets.Seq.map({ $_.tests.Seq.map({.status == DB::SUCCESS}) }).flat) ?? "success" !! "failure"),
([&&] .platform-test-sets.Seq.map({ $_.tests.Seq.map({.superseded || .status == DB::SUCCESS}) }).flat) ?? "success" !! "failure"),
error => .error,
rakudo-git-url => .source-spec.rakudo-git-url,
rakudo-commit-sha => .source-spec.rakudo-commit-sha,
Expand Down

0 comments on commit c1c74bf

Please sign in to comment.