aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Andersson <[email protected]>2016-09-14 13:25:24 +0200
committerPeter Andersson <[email protected]>2016-09-14 13:25:24 +0200
commitb2eebe8f1737629e5e04e81fffda26fc90fb2efe (patch)
tree7cdbc54c3eac0005edd242ea36eaa575f09dac47
parent176b7c94e4146a65ccd2bd729d58487098dddd9c (diff)
parentd4490a20df1f833ac0fdb231406d3fed2e5d86b2 (diff)
downloadotp-b2eebe8f1737629e5e04e81fffda26fc90fb2efe.tar.gz
otp-b2eebe8f1737629e5e04e81fffda26fc90fb2efe.tar.bz2
otp-b2eebe8f1737629e5e04e81fffda26fc90fb2efe.zip
Merge branch 'peppe/common_test/verbosity_functions/OTP-13841' into maint
OTP-13841
-rw-r--r--lib/common_test/src/ct.erl19
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/common_test/src/ct.erl b/lib/common_test/src/ct.erl
index d7ae81a5ce..f9f845e1a9 100644
--- a/lib/common_test/src/ct.erl
+++ b/lib/common_test/src/ct.erl
@@ -68,6 +68,7 @@
log/1, log/2, log/3, log/4, log/5,
print/1, print/2, print/3, print/4,
pal/1, pal/2, pal/3, pal/4,
+ set_verbosity/2, get_verbosity/1,
capture_start/0, capture_stop/0, capture_get/0, capture_get/1,
fail/1, fail/2, comment/1, comment/2, make_priv_dir/0,
testcases/2, userdata/2, userdata/3,
@@ -715,6 +716,24 @@ pal(Category,Importance,Format,Args) ->
ct_logs:tc_pal(Category,Importance,Format,Args).
%%%-----------------------------------------------------------------
+%%% @spec set_verbosity(Category, Level) -> ok
+%%% Category = default | atom()
+%%% Level = integer()
+%%%
+%%% @doc Set the verbosity level for a category
+set_verbosity(Category, Level) ->
+ ct_util:set_verbosity({Category,Level}).
+
+%%%-----------------------------------------------------------------
+%%% @spec get_verbosity(Category) -> Level | undefined
+%%% Category = default | atom()
+%%% Level = integer()
+%%%
+%%% @doc Read the verbosity level for a category
+get_verbosity(Category) ->
+ ct_util:get_verbosity(Category).
+
+%%%-----------------------------------------------------------------
%%% @spec capture_start() -> ok
%%%
%%% @doc Start capturing all text strings printed to stdout during