aboutsummaryrefslogtreecommitdiffstats
path: root/lib/common_test
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2010-09-20 19:10:21 +0200
committerLukas Larsson <[email protected]>2010-12-08 18:07:46 +0100
commit19a4512b95ca20d32cf1eff4dc20eed9dc20510a (patch)
tree017f48b0de42b6eb1cd4e2849a4e075390e7db14 /lib/common_test
parentec4c840624a9a44d4d7d6b1e51e1f33a291a704b (diff)
downloadotp-19a4512b95ca20d32cf1eff4dc20eed9dc20510a.tar.gz
otp-19a4512b95ca20d32cf1eff4dc20eed9dc20510a.tar.bz2
otp-19a4512b95ca20d32cf1eff4dc20eed9dc20510a.zip
Add so that suite_callcacks can be configures in suite/0
Diffstat (limited to 'lib/common_test')
-rw-r--r--lib/common_test/src/ct_framework.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/common_test/src/ct_framework.erl b/lib/common_test/src/ct_framework.erl
index 8e6cfb5565..08ee843597 100644
--- a/lib/common_test/src/ct_framework.erl
+++ b/lib/common_test/src/ct_framework.erl
@@ -369,6 +369,8 @@ configure([{timetrap,off}|Rest],Info,SuiteInfo,Scope,Config) ->
configure([{timetrap,Time}|Rest],Info,SuiteInfo,Scope,Config) ->
Dog = test_server:timetrap(Time),
configure(Rest,Info,SuiteInfo,Scope,[{watchdog,Dog}|Config]);
+configure([{suite_callbacks, CB} | Rest], Info, SuiteInfo, Scope, Config) ->
+ configure(Rest, Info, SuiteInfo, Scope, [{suite_callbacks, CB} | Config]);
configure([_|Rest],Info,SuiteInfo,Scope,Config) ->
configure(Rest,Info,SuiteInfo,Scope,Config);
configure([],_,_,_,Config) ->