diff options
author | Peter Andersson <[email protected]> | 2016-03-09 14:11:30 +0100 |
---|---|---|
committer | Peter Andersson <[email protected]> | 2016-03-09 17:12:49 +0100 |
commit | 52cee865fd9e5b4a1371c82075375a92b8f03fbe (patch) | |
tree | 7e1e8391e914eb093eab32fd6645e4d8f89e3101 /lib/common_test/src/ct_logs.erl | |
parent | fb44a4de532ae97b3424078577dee7370078dea0 (diff) | |
download | otp-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.erl | 14 |
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. |