diff options
author | Peter Andersson <[email protected]> | 2013-11-28 17:38:41 +0100 |
---|---|---|
committer | Peter Andersson <[email protected]> | 2013-11-28 17:38:41 +0100 |
commit | a4565bd7d6e8362b3ca1ff0caedf7407e81d67cb (patch) | |
tree | 056af044a1103d1d3f6c9df5bf2992a02b8fc48c /lib/common_test/src/ct_logs.erl | |
parent | 23a30d882464df4210ea53096ea50e7b44876812 (diff) | |
parent | ac7902caa784d4f4c73eb7291ab4736a75ad13a4 (diff) | |
download | otp-a4565bd7d6e8362b3ca1ff0caedf7407e81d67cb.tar.gz otp-a4565bd7d6e8362b3ca1ff0caedf7407e81d67cb.tar.bz2 otp-a4565bd7d6e8362b3ca1ff0caedf7407e81d67cb.zip |
Merge branch 'maint'
Diffstat (limited to 'lib/common_test/src/ct_logs.erl')
-rw-r--r-- | lib/common_test/src/ct_logs.erl | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/common_test/src/ct_logs.erl b/lib/common_test/src/ct_logs.erl index 1a6e4d31a8..a7fb45a4e4 100644 --- a/lib/common_test/src/ct_logs.erl +++ b/lib/common_test/src/ct_logs.erl @@ -1249,7 +1249,8 @@ make_one_index_entry1(SuiteName, Link, Label, Success, Fail, UserSkip, AutoSkip, integer_to_list(NotBuilt),"</a></td>\n"] end, FailStr = - if Fail > 0 -> + if (Fail > 0) or (NotBuilt > 0) or + ((Success+Fail+UserSkip+AutoSkip) == 0) -> ["<font color=\"red\">", integer_to_list(Fail),"</font>"]; true -> @@ -1904,7 +1905,8 @@ runentry(Dir, undefined, _) -> runentry(Dir, Totals={Node,Label,Logs, {TotSucc,TotFail,UserSkip,AutoSkip,NotBuilt}}, Index) -> TotFailStr = - if TotFail > 0 -> + if (TotFail > 0) or (NotBuilt > 0) or + ((TotSucc+TotFail+UserSkip+AutoSkip) == 0) -> ["<font color=\"red\">", integer_to_list(TotFail),"</font>"]; true -> |