aboutsummaryrefslogtreecommitdiffstats
path: root/lib/common_test/src/ct_framework.erl
diff options
context:
space:
mode:
authorPeter Andersson <[email protected]>2011-07-14 14:18:57 +0200
committerPeter Andersson <[email protected]>2011-09-23 12:24:54 +0200
commit021b0dcb2a3a86ec0e07b0de8dc7cde9be0924ba (patch)
treedb0243654226afff8b63b55076ca058a135cfff0 /lib/common_test/src/ct_framework.erl
parentf703d6512219431fa7fe61e5ddd1a9ed32506daa (diff)
downloadotp-021b0dcb2a3a86ec0e07b0de8dc7cde9be0924ba.tar.gz
otp-021b0dcb2a3a86ec0e07b0de8dc7cde9be0924ba.tar.bz2
otp-021b0dcb2a3a86ec0e07b0de8dc7cde9be0924ba.zip
Introduce new 'logopts' flag
Introduce new 'logopts' flag and make it possible to modify the default logging behaviour OTP-9372 OTP-9396
Diffstat (limited to 'lib/common_test/src/ct_framework.erl')
-rw-r--r--lib/common_test/src/ct_framework.erl12
1 files changed, 11 insertions, 1 deletions
diff --git a/lib/common_test/src/ct_framework.erl b/lib/common_test/src/ct_framework.erl
index 4f57736591..0910b39b72 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([overview_html_header/1]).
+-export([get_logopts/0, overview_html_header/1]).
-export([error_in_suite/1, ct_init_per_group/2, ct_end_per_group/2]).
@@ -1334,6 +1334,16 @@ add_data_dir(File,Config) when is_list(File) ->
end.
%%%-----------------------------------------------------------------
+%%% @spec get_logopts
+get_logopts() ->
+ case ct_util:get_testdata(logopts) of
+ undefined ->
+ [];
+ LogOpts ->
+ LogOpts
+ end.
+
+%%%-----------------------------------------------------------------
%%% @spec overview_html_header(TestName) -> Header
overview_html_header(TestName) ->
TestName1 = lists:flatten(io_lib:format("~p", [TestName])),