aboutsummaryrefslogtreecommitdiffstats
path: root/lib/common_test/src/ct_master.erl
diff options
context:
space:
mode:
authorPeter Andersson <[email protected]>2016-05-02 01:14:10 +0200
committerPeter Andersson <[email protected]>2016-05-02 15:32:49 +0200
commitb7ced331aa797567c4e180eec0b59e59f7227044 (patch)
treed07f20153257cd15debddcad4127ed9991eb7c55 /lib/common_test/src/ct_master.erl
parent6c9fe3aaf3de6b400db4054bc67bf24c4e720861 (diff)
downloadotp-b7ced331aa797567c4e180eec0b59e59f7227044.tar.gz
otp-b7ced331aa797567c4e180eec0b59e59f7227044.tar.bz2
otp-b7ced331aa797567c4e180eec0b59e59f7227044.zip
Add flag/option for disabling the character escaping functionality
OTP-13537
Diffstat (limited to 'lib/common_test/src/ct_master.erl')
-rw-r--r--lib/common_test/src/ct_master.erl12
1 files changed, 11 insertions, 1 deletions
diff --git a/lib/common_test/src/ct_master.erl b/lib/common_test/src/ct_master.erl
index 228daf459b..d24edad2eb 100644
--- a/lib/common_test/src/ct_master.erl
+++ b/lib/common_test/src/ct_master.erl
@@ -27,7 +27,7 @@
-export([run_on_node/2,run_on_node/3]).
-export([run_test/1,run_test/2]).
-export([get_event_mgr_ref/0]).
--export([basic_html/1]).
+-export([basic_html/1,esc_chars/1]).
-export([abort/0,abort/1,progress/0]).
@@ -317,6 +317,16 @@ basic_html(Bool) ->
ok.
%%%-----------------------------------------------------------------
+%%% @spec esc_chars(Bool) -> ok
+%%% Bool = true | false
+%%%
+%%% @doc If set to false, the ct_master logs will be written without
+%%% special characters being escaped in the HTML logs.
+esc_chars(Bool) ->
+ application:set_env(common_test_master, esc_chars, Bool),
+ ok.
+
+%%%-----------------------------------------------------------------
%%% MASTER, runs on central controlling node.
%%%-----------------------------------------------------------------
start_master(NodeOptsList) ->