aboutsummaryrefslogtreecommitdiffstats
path: root/lib/common_test/test_server
diff options
context:
space:
mode:
authorPeter Andersson <[email protected]>2016-03-08 15:27:59 +0100
committerPeter Andersson <[email protected]>2016-03-08 15:27:59 +0100
commit98518999e43921de723f9057e8405c889d020500 (patch)
treeb3eb8eb502e84ded18d31badb4de10ce989411f7 /lib/common_test/test_server
parent92573ea08320c05f233e978aba2aa7a4463b3617 (diff)
parentd524390a550b9c43d628ea140a665b0e62aa51de (diff)
downloadotp-98518999e43921de723f9057e8405c889d020500.tar.gz
otp-98518999e43921de723f9057e8405c889d020500.tar.bz2
otp-98518999e43921de723f9057e8405c889d020500.zip
Merge branch 'maint'
Diffstat (limited to 'lib/common_test/test_server')
-rw-r--r--lib/common_test/test_server/ts_install_cth.erl17
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/common_test/test_server/ts_install_cth.erl b/lib/common_test/test_server/ts_install_cth.erl
index ec0d54ccde..0462e62611 100644
--- a/lib/common_test/test_server/ts_install_cth.erl
+++ b/lib/common_test/test_server/ts_install_cth.erl
@@ -41,6 +41,8 @@
-export([post_end_per_group/4]).
-export([pre_init_per_testcase/3]).
+-export([post_init_per_testcase/4]).
+-export([pre_end_per_testcase/3]).
-export([post_end_per_testcase/4]).
-export([on_tc_fail/3]).
@@ -181,7 +183,22 @@ post_end_per_group(_Group,_Config,Return,State) ->
pre_init_per_testcase(_TC,Config,State) ->
{add_node_name(Config, State), State}.
+-spec post_init_per_testcase(TC :: atom(),
+ Config :: config(),
+ Return :: term(),
+ State :: #state{}) ->
+ {ok | skip_or_fail(), NewState :: #state{}}.
+post_init_per_testcase(_TC,_Config,Return,State) ->
+ {Return, State}.
+
%% @doc Called after each test case.
+-spec pre_end_per_testcase(TC :: atom(),
+ Config :: config(),
+ State :: #state{}) ->
+ {config() | skip_or_fail(), NewState :: #state{}}.
+pre_end_per_testcase(_TC,Config,State) ->
+ {Config, State}.
+
-spec post_end_per_testcase(TC :: atom(),
Config :: config(),
Return :: term(),