aboutsummaryrefslogtreecommitdiffstats
path: root/lib/common_test/src/ct_testspec.erl
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2011-09-20 10:04:12 +0200
committerLukas Larsson <[email protected]>2011-09-20 16:01:11 +0200
commit97273a38297ab03f727c4c7bdbb3b0491bdcfb8f (patch)
treee03deeca324522e11ad0bcbfb57f61661596734c /lib/common_test/src/ct_testspec.erl
parent7bfbabb0a099b9dbd34363ffe3dc0c03918b1f3b (diff)
downloadotp-97273a38297ab03f727c4c7bdbb3b0491bdcfb8f.tar.gz
otp-97273a38297ab03f727c4c7bdbb3b0491bdcfb8f.tar.bz2
otp-97273a38297ab03f727c4c7bdbb3b0491bdcfb8f.zip
Add -enable_builtin_hooks <bool> config option
This option allows ct users to disable the default hooks which are installed when common_test is started. The builtin hooks themselved are listed in ct_hooks. OTP-9564
Diffstat (limited to 'lib/common_test/src/ct_testspec.erl')
-rw-r--r--lib/common_test/src/ct_testspec.erl5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/common_test/src/ct_testspec.erl b/lib/common_test/src/ct_testspec.erl
index d845358bb2..96971ccfc7 100644
--- a/lib/common_test/src/ct_testspec.erl
+++ b/lib/common_test/src/ct_testspec.erl
@@ -646,6 +646,10 @@ add_tests([{ct_hooks, _Node, []}|Ts], Spec) ->
add_tests([{ct_hooks, Hooks}|Ts], Spec) ->
add_tests([{ct_hooks, all_nodes, Hooks}|Ts], Spec);
+%% -- enable_builtin_hooks --
+add_tests([{enable_builtin_hooks,Bool}|Ts],Spec) ->
+ add_tests(Ts, Spec#testspec{ enable_builtin_hooks = Bool });
+
%% --- include ---
add_tests([{include,all_nodes,InclDirs}|Ts],Spec) ->
Tests = lists:map(fun(N) -> {include,N,InclDirs} end, list_nodes(Spec)),
@@ -1104,6 +1108,7 @@ valid_terms() ->
{event_handler,4},
{ct_hooks,2},
{ct_hooks,3},
+ {enable_builtin_hooks,1},
{multiply_timetraps,2},
{multiply_timetraps,3},
{scale_timetraps,2},