aboutsummaryrefslogtreecommitdiffstats
path: root/lib/common_test/src/ct.erl
diff options
context:
space:
mode:
authorAndrey Pampukha <[email protected]>2010-02-24 15:15:41 +0100
committerRaimo Niskanen <[email protected]>2010-06-09 16:19:08 +0200
commitf2dcd87634cdcee65f0a930731a45005b4c20d08 (patch)
tree322016c8b0c6cddc08735f9de898a26e9eb7db36 /lib/common_test/src/ct.erl
parent8c79c17611c37217345e969aa2c344fe34e0375e (diff)
downloadotp-f2dcd87634cdcee65f0a930731a45005b4c20d08.tar.gz
otp-f2dcd87634cdcee65f0a930731a45005b4c20d08.tar.bz2
otp-f2dcd87634cdcee65f0a930731a45005b4c20d08.zip
Implement reloading of the config data
Diffstat (limited to 'lib/common_test/src/ct.erl')
-rw-r--r--lib/common_test/src/ct.erl17
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/common_test/src/ct.erl b/lib/common_test/src/ct.erl
index 3cc6154592..bee5c920a9 100644
--- a/lib/common_test/src/ct.erl
+++ b/lib/common_test/src/ct.erl
@@ -59,6 +59,7 @@
%% Test suite API
-export([require/1, require/2,
get_config/1, get_config/2, get_config/3,
+ reload_config/1,
log/1, log/2, log/3,
print/1, print/2, print/3,
pal/1, pal/2, pal/3,
@@ -379,6 +380,22 @@ get_config(Required,Default,Opts) ->
ct_config:get_config(Required,Default,Opts).
%%%-----------------------------------------------------------------
+%%% @spec reload_config(Required) -> ValueOrElement
+%%% Required = KeyOrName | {KeyOrName,SubKey}
+%%% KeyOrName = atom()
+%%% SubKey = atom()
+%%% ValueOrElement = term()
+%%%
+%%% @doc Reload config file which contains specified configuration key.
+%%%
+%%% <p>This function performs updating of the configuration data from which the
+%%% given configuration variable was read, and returns the (possibly) new
+%%% value of this variable.</p>
+%%%
+reload_config(Required)->
+ ct_config:reload_config(Required).
+
+%%%-----------------------------------------------------------------
%%% @spec log(Format) -> ok
%%% @equiv log(default,Format,[])
log(Format) ->