aboutsummaryrefslogtreecommitdiffstats
path: root/lib/common_test/src/ct_logs.erl
diff options
context:
space:
mode:
authorPeter Andersson <[email protected]>2016-03-09 14:11:30 +0100
committerPeter Andersson <[email protected]>2016-03-09 17:12:49 +0100
commit52cee865fd9e5b4a1371c82075375a92b8f03fbe (patch)
tree7e1e8391e914eb093eab32fd6645e4d8f89e3101 /lib/common_test/src/ct_logs.erl
parentfb44a4de532ae97b3424078577dee7370078dea0 (diff)
downloadotp-52cee865fd9e5b4a1371c82075375a92b8f03fbe.tar.gz
otp-52cee865fd9e5b4a1371c82075375a92b8f03fbe.tar.bz2
otp-52cee865fd9e5b4a1371c82075375a92b8f03fbe.zip
Fix minor issues with escaping characters
OTP-13003
Diffstat (limited to 'lib/common_test/src/ct_logs.erl')
-rw-r--r--lib/common_test/src/ct_logs.erl14
1 files changed, 10 insertions, 4 deletions
diff --git a/lib/common_test/src/ct_logs.erl b/lib/common_test/src/ct_logs.erl
index e3f995ad3f..4920383f39 100644
--- a/lib/common_test/src/ct_logs.erl
+++ b/lib/common_test/src/ct_logs.erl
@@ -432,10 +432,16 @@ tc_log(Category,Importance,Format,Args,Opts) ->
%%% stuff directly from a testcase (i.e. not from within the CT
%%% framework).</p>
tc_log(Category,Importance,Printer,Format,Args,Opts) ->
- cast({log,sync,self(),group_leader(),Category,Importance,
- [{hd,div_header(Category,Printer),[]},
- {Format,Args},
- {ft,div_footer(),[]}],
+ Data =
+ case lists:member(no_css, Opts) of
+ true ->
+ [{Format,Args}];
+ false ->
+ [{hd,div_header(Category,Printer),[]},
+ {Format,Args},
+ {ft,div_footer(),[]}]
+ end,
+ cast({log,sync,self(),group_leader(),Category,Importance,Data,
lists:member(esc_chars, Opts)}),
ok.