aboutsummaryrefslogtreecommitdiffstats
path: root/lib/common_test/src/ct_run.erl
diff options
context:
space:
mode:
authorPeter Andersson <[email protected]>2013-03-08 16:19:29 +0100
committerPeter Andersson <[email protected]>2013-04-17 09:59:55 +0200
commita2604872aebcd70c94419c27b7a5c4750c6a4712 (patch)
treea46ef6edc6a0f63a44da53266578044ff2d45fc5 /lib/common_test/src/ct_run.erl
parent6c04513724fa301a449b6b16e1f7a88fa02a8a0e (diff)
downloadotp-a2604872aebcd70c94419c27b7a5c4750c6a4712.tar.gz
otp-a2604872aebcd70c94419c27b7a5c4750c6a4712.tar.bz2
otp-a2604872aebcd70c94419c27b7a5c4750c6a4712.zip
Implement cache for the CT logger
OTP-10855
Diffstat (limited to 'lib/common_test/src/ct_run.erl')
-rw-r--r--lib/common_test/src/ct_run.erl14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/common_test/src/ct_run.erl b/lib/common_test/src/ct_run.erl
index 49f00429ae..ebb1c87905 100644
--- a/lib/common_test/src/ct_run.erl
+++ b/lib/common_test/src/ct_run.erl
@@ -329,6 +329,13 @@ script_start1(Parent, Args) ->
application:set_env(common_test, basic_html, true),
true
end,
+ %% disable_log_cache - used by ct_logs
+ case proplists:get_value(disable_log_cache, Args) of
+ undefined ->
+ application:set_env(common_test, disable_log_cache, false);
+ _ ->
+ application:set_env(common_test, disable_log_cache, true)
+ end,
Opts = #opts{label = Label, profile = Profile,
vts = Vts, shell = Shell,
@@ -1039,6 +1046,13 @@ run_test2(StartOpts) ->
BasicHtmlBool
end,
+ case proplists:get_value(disable_log_cache, StartOpts) of
+ undefined ->
+ application:set_env(common_test, disable_log_cache, false);
+ DisableCacheBool ->
+ application:set_env(common_test, disable_log_cache, DisableCacheBool)
+ end,
+
%% stepped execution
Step = get_start_opt(step, value, StartOpts),