aboutsummaryrefslogtreecommitdiffstats
path: root/lib/common_test/src/ct_framework.erl
diff options
context:
space:
mode:
authorPeter Andersson <[email protected]>2011-07-14 16:56:36 +0200
committerPeter Andersson <[email protected]>2011-09-23 12:24:54 +0200
commitbd56af6214c451b9c7d0ab455b2597021299ecaa (patch)
treea182fb89b972d1cea07eb5b241caa3746bf230a7 /lib/common_test/src/ct_framework.erl
parent8618bb8eab726ab5652b40751bdca928b49eca7f (diff)
downloadotp-bd56af6214c451b9c7d0ab455b2597021299ecaa.tar.gz
otp-bd56af6214c451b9c7d0ab455b2597021299ecaa.tar.bz2
otp-bd56af6214c451b9c7d0ab455b2597021299ecaa.zip
Introduce new framework callback function to read info about color of comments
OTP-9237
Diffstat (limited to 'lib/common_test/src/ct_framework.erl')
-rw-r--r--lib/common_test/src/ct_framework.erl9
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/common_test/src/ct_framework.erl b/lib/common_test/src/ct_framework.erl
index 0910b39b72..a683822977 100644
--- a/lib/common_test/src/ct_framework.erl
+++ b/lib/common_test/src/ct_framework.erl
@@ -27,7 +27,7 @@
-export([init_tc/3, end_tc/3, end_tc/4, get_suite/2, report/2, warn/1]).
-export([error_notification/4]).
--export([get_logopts/0, overview_html_header/1]).
+-export([get_logopts/0, format_comment/1, overview_html_header/1]).
-export([error_in_suite/1, ct_init_per_group/2, ct_end_per_group/2]).
@@ -1334,7 +1334,7 @@ add_data_dir(File,Config) when is_list(File) ->
end.
%%%-----------------------------------------------------------------
-%%% @spec get_logopts
+%%% @spec get_logopts() -> [LogOpt]
get_logopts() ->
case ct_util:get_testdata(logopts) of
undefined ->
@@ -1344,6 +1344,11 @@ get_logopts() ->
end.
%%%-----------------------------------------------------------------
+%%% @spec format_comment(Comment) -> HtmlComment
+format_comment(Comment) ->
+ "<font color=\"green\">" ++ Comment ++ "</font>".
+
+%%%-----------------------------------------------------------------
%%% @spec overview_html_header(TestName) -> Header
overview_html_header(TestName) ->
TestName1 = lists:flatten(io_lib:format("~p", [TestName])),