diff options
author | Peter Andersson <[email protected]> | 2015-05-04 16:11:57 +0200 |
---|---|---|
committer | Peter Andersson <[email protected]> | 2015-05-04 16:11:57 +0200 |
commit | 60f7491d074b77d30bb3582c54262aa315c625cb (patch) | |
tree | 8bd3bb033c4bd1ee9091e47e966f9973531a26f5 /lib/common_test/src/ct_logs.erl | |
parent | 1fc847019eadb0190997dfe4fc4f9d97a688b887 (diff) | |
parent | 985215ccba444132fb8e01e72968493402b976a8 (diff) | |
download | otp-60f7491d074b77d30bb3582c54262aa315c625cb.tar.gz otp-60f7491d074b77d30bb3582c54262aa315c625cb.tar.bz2 otp-60f7491d074b77d30bb3582c54262aa315c625cb.zip |
Merge remote-tracking branch 'origin/peppe/common_test/improve_suite_error_reports'
* origin/peppe/common_test/improve_suite_error_reports:
Add missing events and hook function calls
Improve error reports in log when suite compilation fails
OTP-10816
Diffstat (limited to 'lib/common_test/src/ct_logs.erl')
-rw-r--r-- | lib/common_test/src/ct_logs.erl | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/common_test/src/ct_logs.erl b/lib/common_test/src/ct_logs.erl index 4d5a75d354..7c8c720e13 100644 --- a/lib/common_test/src/ct_logs.erl +++ b/lib/common_test/src/ct_logs.erl @@ -2054,6 +2054,13 @@ runentry(Dir, Totals={Node,Label,Logs, ?testname_width-3)), lists:flatten(io_lib:format("~ts...",[Trunc])) end, + TotMissingStr = + if NotBuilt > 0 -> + ["<font color=\"red\">", + integer_to_list(NotBuilt),"</font>"]; + true -> + integer_to_list(NotBuilt) + end, Total = TotSucc+TotFail+AllSkip, A = xhtml(["<td align=center><font size=\"-1\">",Node, "</font></td>\n", @@ -2073,7 +2080,7 @@ runentry(Dir, Totals={Node,Label,Logs, "<td align=right>",TotFailStr,"</td>\n", "<td align=right>",integer_to_list(AllSkip), " (",UserSkipStr,"/",AutoSkipStr,")</td>\n", - "<td align=right>",integer_to_list(NotBuilt),"</td>\n"], + "<td align=right>",TotMissingStr,"</td>\n"], TotalsStr = A++B++C, XHTML = [xhtml("<tr>\n", ["<tr class=\"",odd_or_even(),"\">\n"]), |