avoid 'failssucceeds' status

If a package has a failure log and a success log, then ignore the
success and only show "fails" in the build summary.

fixes https://github.com/racket/pkg-build/issues/9
This commit is contained in:
Ben Greenman 2020-02-25 11:14:54 -05:00 committed by Jay McCarthy
parent 575a34bdca
commit f9c3578ec4

View File

@ -702,8 +702,9 @@
[else "build_green"]))
`(td ((class ,td-class))
,@(for/list [(e (list (list failure-log-url "" "fails")
(list success-log-url "" "succeeds")
,@(for/list [(e (list (if failure-log-url
(list failure-log-url "" "fails")
(list success-log-url "" "succeeds"))
(list conflicts-log-url "; has " "conflicts")
(list dep-failure-log-url "; has " "dependency problems")
(list test-failure-log-url "; has " "failing tests")))]