aboutsummaryrefslogtreecommitdiffstats
path: root/lib/common_test/src/ct.erl
diff options
context:
space:
mode:
authorAndrey Pampukha <[email protected]>2010-03-22 15:29:28 +0100
committerRaimo Niskanen <[email protected]>2010-06-09 16:19:15 +0200
commit2fa838d02446ad54588c2fe6995e3c065e99ec9c (patch)
treecf6711b974882c5f9f7d63b3dd1803b30ad5fde1 /lib/common_test/src/ct.erl
parentb8b5b0d60b90f22db3bcdbb15012636a67ed470a (diff)
downloadotp-2fa838d02446ad54588c2fe6995e3c065e99ec9c.tar.gz
otp-2fa838d02446ad54588c2fe6995e3c065e99ec9c.tar.bz2
otp-2fa838d02446ad54588c2fe6995e3c065e99ec9c.zip
Add functions for adding and removing config handlers
This is a draft version.
Diffstat (limited to 'lib/common_test/src/ct.erl')
-rw-r--r--lib/common_test/src/ct.erl9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/common_test/src/ct.erl b/lib/common_test/src/ct.erl
index bee5c920a9..caae2326b6 100644
--- a/lib/common_test/src/ct.erl
+++ b/lib/common_test/src/ct.erl
@@ -66,12 +66,14 @@
fail/1, comment/1,
testcases/2, userdata/2, userdata/3]).
+%% New API for manipulating with config handlers
+-export([add_config/2, remove_config/2]).
+
%% Other interface functions
-export([get_status/0, abort_current_testcase/1,
encrypt_config_file/2, encrypt_config_file/3,
decrypt_config_file/2, decrypt_config_file/3]).
-
-export([get_target_name/1]).
-export([parse_table/1, listenv/1]).
@@ -805,3 +807,8 @@ decrypt_config_file(EncryptFileName, TargetFileName) ->
decrypt_config_file(EncryptFileName, TargetFileName, KeyOrFile) ->
ct_config:decrypt_config_file(EncryptFileName, TargetFileName, KeyOrFile).
+add_config(Callback, Config)->
+ ct_config:add_config(Callback, Config).
+
+remove_config(Callback, Config)->
+ ct_config:remove_config(Callback, Config).